Standardize HTTP worker bind flags #154
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: | |
| branches: [main] | |
| # vgi-go's CI covers formatting, vet, lint, the worker build, and the pure-Go | |
| # unit tests. The integration suite (make test / test-http / test-shm) needs a | |
| # built DuckDB VGI extension, which is produced by the dedicated extension-build | |
| # pipeline in the Query-farm/vgi repo (vcpkg + duckdb extension-ci-tools). It is | |
| # run there and locally rather than rebuilt from scratch here. | |
| jobs: | |
| lint: | |
| name: Lint & Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26' | |
| - name: Check formatting | |
| run: test -z "$(gofmt -l .)" | |
| - name: Vet | |
| run: make vet | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: latest | |
| # only-new-issues: the repo has pre-existing lint debt that predates CI | |
| # ever running golangci-lint (the workflow failed earlier, at checkout, | |
| # before this step). Gate on issues introduced by the change under test | |
| # so new code stays clean while the backlog is paid down separately. | |
| only-new-issues: true | |
| - name: Build | |
| run: make build | |
| - name: Unit tests with coverage | |
| run: make test-unit | |
| - name: Upload coverage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: coverage.out | |
| if-no-files-found: warn | |