Fix webhook test to avoid deprecated ioutil for staticcheck #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.23.x" | |
| cache: true | |
| - name: Install staticcheck | |
| run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
| - name: Go fmt / vet / test / staticcheck | |
| run: | | |
| go fmt ./... | |
| go vet ./... | |
| go test ./... | |
| $(go env GOPATH)/bin/staticcheck ./... | |
| - name: Build container (no push) | |
| run: docker build -t ghcr.io/${{ github.repository }}/gamifykit:ci-${{ github.run_number }} . | |