Skip to content

Commit f523826

Browse files
committed
Split up linting CI job from testing CI job
1 parent 0ddc85d commit f523826

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/go.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,20 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
build:
10+
lint:
11+
name: lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-go@v5
16+
with:
17+
go-version: '1.22'
18+
- name: golangci-lint
19+
uses: golangci/golangci-lint-action@v4
20+
with:
21+
version: 1.57.1
22+
23+
test:
1124
runs-on: ubuntu-latest
1225

1326
strategy:
@@ -24,11 +37,6 @@ jobs:
2437
with:
2538
go-version: ${{ matrix.go }}
2639

27-
- name: golangci-lint
28-
uses: golangci/golangci-lint-action@v3
29-
with:
30-
version: v1.57.1
31-
3240
- name: Test
3341
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
3442

0 commit comments

Comments
 (0)