Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest] # amd64, arm64
os: [ubuntu-latest, ubuntu-24.04-arm] # amd64, arm64
go: [stable, oldstable]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
Expand All @@ -51,6 +51,39 @@ jobs:
- name: Benchmarks compile and run once
run: go test -run=NONE -bench=. -benchtime=1x ./...

# Not required by "CI passed": macOS runners are often short (jobs queue for
# minutes or are never picked up), and arm64 is covered by ubuntu-24.04-arm.
test-macos:
name: Test, non-blocking (Go ${{ matrix.go }}, ${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [macos-latest] # arm64
go: [stable]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v7

- uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go }}
cache: true

- name: Verify go mod tidy
run: |
go mod tidy
git diff --exit-code -- go.mod go.sum

- name: Vet
run: go vet ./...

- name: Test
run: go test -race -failfast -count=1 ./...

- name: Benchmarks compile and run once
run: go test -run=NONE -bench=. -benchtime=1x ./...

lint:
name: Lint
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ A `perf:` change that users should know about belongs in a `feat:` commit.
go test -race -count=1 ./...
golangci-lint run ./... # .golangci.yml, `default: all`

CI runs the same checks on the stable and oldstable Go releases, on Linux (amd64) and macOS (arm64),
CI runs the same checks on the stable and oldstable Go releases, on Linux (amd64 and arm64)
and on macOS (arm64, stable Go only; it does not block merging),
plus `govulncheck` and a coverage gate.

## Changes on a hot path
Expand Down
Loading