Repository navigation
Milestones 10 and 11: Summary and PL/pgSQL — every entry point implemented, corpus at 100% #14
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| # The whole point: no cgo, anywhere, ever. | |
| CGO_ENABLED: "0" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: gofmt | |
| run: test -z "$(gofmt -l . | grep -v '^internal/reference/' | grep -v '\.pb\.go$')" | |
| - run: go vet ./... | |
| - run: go build ./... | |
| - name: go test -race | |
| env: | |
| CGO_ENABLED: "1" # -race requires cgo in the toolchain, not in our code | |
| run: go test -race ./... | |
| - name: go test (pure) | |
| run: go test ./... | |
| generate-clean: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: cmd/generate output is committed and current | |
| run: | | |
| go run ./cmd/generate -aliases -keywords -plpgsql | |
| git diff --exit-code |