From 266459d08b7b1d9c5e3065f97faad87098c1ffdf Mon Sep 17 00:00:00 2001 From: William Theaker Date: Fri, 14 Jun 2024 16:05:56 -0400 Subject: [PATCH] Move linting to separate job. --- .github/workflows/compile.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 96314f2..3308509 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -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: @@ -16,8 +26,6 @@ jobs: - macOS-11 - macOS-12 - macOS-13 - go: - - stable steps: - name: Check out repository code uses: actions/checkout@v4 @@ -33,7 +41,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go }} + go-version: stable - name: Build run: make - name: Test @@ -41,8 +49,6 @@ jobs: 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