Skip to content

Commit

Permalink
workflow: moved linting to its own job
Browse files Browse the repository at this point in the history
  • Loading branch information
neilotoole committed Jan 19, 2024
1 parent acab92b commit 5a13191
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ on:
pull_request:

jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-go@v4
with:
go-version-file: go.mod

- name: Lint
uses: golangci/golangci-lint-action@v3

build-test:
strategy:
matrix:
Expand All @@ -24,9 +38,6 @@ jobs:
- name: Build
run: go build -v ./...

- name: Lint
uses: golangci/golangci-lint-action@v3

- name: Test
run: go test -v ./...

Expand Down

0 comments on commit 5a13191

Please sign in to comment.