Skip to content

Commit

Permalink
split linting into separate jobs for golangci-lint and staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Apr 30, 2024
1 parent f63cacb commit 17e5dee
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ permissions:
contents: read

jobs:
lint:
staticcheck:
runs-on: ubuntu-latest

steps:
- name: Set up Go
uses: actions/setup-go@v5
Expand All @@ -26,13 +25,25 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v5
with:
version: latest

- name: Set up staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Run staticcheck
run: staticcheck ./...

golangci-lint:
runs-on: ubuntu-latest

steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"

- name: Clone repository
uses: actions/checkout@v4

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v5
with:
version: latest

0 comments on commit 17e5dee

Please sign in to comment.