docs: point construction docs at the option package #3
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: | |
| name: test (${{ matrix.go }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go: [stable, oldstable] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: gofmt | |
| run: test -z "$(gofmt -l .)" | |
| - name: vet | |
| run: go vet ./... | |
| - name: build | |
| run: go build ./... | |
| # Never filter test output through grep/tail here: pipes mask | |
| # exit codes and a broken build can slip through green. | |
| - name: test | |
| run: go test -race ./... | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: stable | |
| - uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: latest | |
| govulncheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: stable | |
| - name: govulncheck | |
| run: | | |
| go install golang.org/x/vuln/cmd/govulncheck@latest | |
| govulncheck ./... | |
| spec-drift: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Diff committed spec against upstream | |
| run: | | |
| curl -fsSL -o /tmp/upstream-openapi.json https://raw.githubusercontent.com/spoo-me/spoo/main/openapi.json | |
| diff -u openapi.json /tmp/upstream-openapi.json |