Skip to content

Commit

Permalink
Move linting to separate job.
Browse files Browse the repository at this point in the history
  • Loading branch information
williamtheaker authored and cfergeau committed Jul 9, 2024
1 parent a91e40c commit 266459d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ on:
- "*"
pull_request: {}
jobs:
golangci:
name: lint
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
build:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -16,8 +26,6 @@ jobs:
- macOS-11
- macOS-12
- macOS-13
go:
- stable
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand All @@ -33,16 +41,14 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
go-version: stable
- name: Build
run: make
- name: Test
if: matrix.os != 'macOS-11'
run: make test
- name: vet
run: go vet ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
- name: Upload vfkit artifact
if: matrix.os == 'macOS-13'
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 266459d

Please sign in to comment.