docs(changelog): the guard's two exemptions are one entry, with the cost #480
Workflow file for this run
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: test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version: '1.25' | |
| cache: true | |
| - name: go vet | |
| run: go vet ./... | |
| - name: gofmt check | |
| run: | | |
| unformatted=$(gofmt -l .) | |
| if [ -n "$unformatted" ]; then | |
| echo "gofmt needed on:" | |
| echo "$unformatted" | |
| exit 1 | |
| fi | |
| - name: go test | |
| run: go test ./... -race -count=1 | |
| # Heavy -race repetition over the concurrency-sensitive packages (flake | |
| # post-mortem, v0.3.0). Gated on a paths filter so it only runs when the | |
| # diff touches those packages — unrelated PRs skip it entirely. Advisory | |
| # until promoted: do NOT add it to branch protection required checks yet. | |
| stress: | |
| runs-on: ubuntu-latest | |
| # paths-filter lists changed files via the API on pull_request events; | |
| # pin the permission it needs so a future restricted-default token | |
| # setting cannot silently break the filter. | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4 | |
| id: changes | |
| with: | |
| filters: | | |
| concurrency: | |
| - 'internal/schedule/**' | |
| - 'internal/runner/**' | |
| - 'internal/runfeed/**' | |
| - 'internal/verify/**' | |
| - uses: actions/setup-go@v7 | |
| if: steps.changes.outputs.concurrency == 'true' | |
| with: | |
| go-version: '1.25' | |
| cache: true | |
| - name: go test (stress) | |
| if: steps.changes.outputs.concurrency == 'true' | |
| run: go test ./internal/schedule ./internal/runner ./internal/runfeed ./internal/verify -race -count=200 |