Skip to content

Commit 4315821

Browse files
committed
golangci-lint: run in own GitHub Actions job
By using the golangci-lint action after other go commands, conflicting files during the "prepare environment" phase occurred. This known issue[0] is easily fixable by putting golangci-lint in its own job. [0] golangci/golangci-lint-action#23
1 parent 953430a commit 4315821

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/go.yml

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ jobs:
2121
run: go test -v ./...
2222
- name: Vet
2323
run: go vet ./...
24+
25+
golangci-lint:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-go@v4
30+
with:
31+
cache: false
2432
- name: golangci-lint
2533
uses: golangci/golangci-lint-action@v3
2634
with:

0 commit comments

Comments
 (0)