Fix CI #51
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: Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| GOEXPERIMENT: jsonv2 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '>=1.26.4' | |
| - name: Install Tools | |
| run: go install tool | |
| - name: Gofumpt | |
| run: go tool gofumpt -d -e . | |
| - name: Go Vet | |
| run: go vet ./... | |
| - name: Staticcheck | |
| run: go tool staticcheck ./... | |
| - name: Govulncheck | |
| run: go tool govulncheck ./... | |
| - name: OpenAPI specification errors | |
| run: go tool swag init -g cmd/app/main.go -o . -ot yaml --v3.1 --parseDependency && mv swagger.yaml openapi-v3.yaml && git diff --exit-code openapi-v3.yaml | |
| - name: Tests | |
| run: go test ./... |