Skip to content

Commit 672742a

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

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

.github/workflows/go-test.yml

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

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

99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v4
1414

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

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

0 commit comments

Comments
 (0)