Skip to content

Commit 30e0095

Browse files
committed
ci: bump actions to latest majors + gate tests on lint
- actions/checkout v4→v6, actions/setup-go v5→v6, golangci-lint-action v7→v9 (clears the Node.js 20 deprecation — all now run on Node 24). - Reorder so Lint runs first; the 3-OS Test matrix now 'needs: lint', so tests only run once lint passes (fail-fast, saves CI minutes).
1 parent fc6e28d commit 30e0095

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,34 @@ permissions:
99
contents: read
1010

1111
jobs:
12+
lint:
13+
name: Lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
- uses: actions/setup-go@v6
18+
with:
19+
go-version: stable
20+
cache: true
21+
- uses: golangci/golangci-lint-action@v9
22+
with:
23+
version: v2.12.2
24+
1225
test:
1326
name: Test (${{ matrix.os }})
27+
needs: lint
1428
strategy:
1529
fail-fast: false
1630
matrix:
1731
os: [ubuntu-latest, macos-latest, windows-latest]
1832
runs-on: ${{ matrix.os }}
1933
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions/setup-go@v5
34+
- uses: actions/checkout@v6
35+
- uses: actions/setup-go@v6
2236
with:
2337
go-version: stable
2438
cache: true
2539
- name: go vet
2640
run: go vet ./...
2741
- name: go test
2842
run: go test ./...
29-
30-
lint:
31-
name: Lint
32-
runs-on: ubuntu-latest
33-
steps:
34-
- uses: actions/checkout@v4
35-
- uses: actions/setup-go@v5
36-
with:
37-
go-version: stable
38-
cache: true
39-
- uses: golangci/golangci-lint-action@v7
40-
with:
41-
version: v2.12.2

0 commit comments

Comments
 (0)