Skip to content

Commit b2c2668

Browse files
committed
chore: run lint in CI
1 parent f1abbb1 commit b2c2668

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

.github/workflows/go-test.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,34 @@ name: Go Tests
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
87

98
jobs:
109
test:
1110
runs-on: ubuntu-latest
1211
steps:
13-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v4
1413

15-
- name: Set up Go
16-
uses: actions/setup-go@v5
17-
with:
18-
go-version: 'stable'
14+
- name: Set up Go
15+
uses: actions/setup-go@v5
16+
with:
17+
go-version: "stable"
1918

20-
- name: Test
21-
run: go test -count=1 -v ./...
19+
- name: Test
20+
run: go test -count=1 -v ./...
21+
22+
lint:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Set up Go
28+
uses: actions/setup-go@v5
29+
with:
30+
go-version: "stable"
31+
32+
- name: golangci-lint
33+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
34+
with:
35+
version: v2.1

0 commit comments

Comments
 (0)