Skip to content

Commit

Permalink
golangci-lint: run in own GitHub Actions job
Browse files Browse the repository at this point in the history
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
  • Loading branch information
oxzi committed Oct 30, 2023
1 parent 953430a commit aa278da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
run: go test -v ./...
- name: Vet
run: go vet ./...

golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down

0 comments on commit aa278da

Please sign in to comment.