Skip to content

Commit 42facb9

Browse files
committed
Added linter to the Go workflow
1 parent a54e7dc commit 42facb9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/go.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ name: Go
33
on:
44
push:
55
jobs:
6+
vet:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-go@v5
11+
- name: Run go vet
12+
run: go vet ./...
613
test:
714
runs-on: ubuntu-latest
815
steps:
@@ -12,3 +19,12 @@ jobs:
1219
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
1320
- name: Run test
1421
run: go test ./...
22+
golangci-lint:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-go@v5
27+
- name: Install golangci-lint
28+
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
29+
- name: Run golangci-lint
30+
run: golangci-lint run

0 commit comments

Comments
 (0)