From 720642ff1faf74d7a7a93a9bfeaa6913258fb032 Mon Sep 17 00:00:00 2001 From: Eric Hripko Date: Tue, 23 Feb 2021 09:58:59 +0000 Subject: [PATCH] Lint in a separate job --- .github/workflows/ci.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7438183..38a7acf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,16 @@ name: CI on: push jobs: - ci: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Lint + uses: golangci/golangci-lint-action@v2 + with: + version: v1.37 + release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -16,13 +25,6 @@ jobs: - name: Build run: go build -v ./... - - name: Lint - uses: golangci/golangci-lint-action@v2 - with: - version: v1.37 - # Skip caching since it fails - skip-pkg-cache: true - skip-build-cache: true - name: Package uses: docker/build-push-action@v2 with: