feat(pricing): refresh built-in model prices to current list prices #233
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] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-test: | |
| name: build & test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Verify gofmt | |
| run: | | |
| unformatted=$(gofmt -l .) | |
| if [ -n "$unformatted" ]; then | |
| echo "These files are not gofmt-formatted:" | |
| echo "$unformatted" | |
| exit 1 | |
| fi | |
| - name: go vet | |
| run: go vet ./... | |
| - name: Build | |
| run: go build ./... | |
| - name: Test (race + coverage) | |
| run: go test -race -coverprofile=coverage.out ./... | |
| govulncheck: | |
| name: govulncheck | |
| runs-on: ubuntu-latest | |
| # Advisory, not a hard gate: govulncheck surfaces standard-library advisories | |
| # whose presence depends on the runner's Go patch level (cleared by bumping the | |
| # toolchain), which we don't want to block unrelated PRs on. Dependency findings | |
| # are reviewed from the logs. Build/test/vet/gofmt above remain hard gates. | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: stable | |
| cache: true | |
| - name: Run govulncheck | |
| run: | | |
| go install golang.org/x/vuln/cmd/govulncheck@latest | |
| govulncheck ./... |