From 85e5c0b3c37d839c6adf49c461dbbb4996b151cd Mon Sep 17 00:00:00 2001 From: Evgeniy Frolov Date: Wed, 25 Dec 2024 17:33:31 +0300 Subject: [PATCH] chore(ci): move golangci-lint install to separate job Signed-off-by: Evgeniy Frolov --- .github/workflows/lint.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7e79e563..4be8f5ed 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,8 +19,16 @@ jobs: prettier: uses: werf/common-ci/.github/workflows/lint.yml@chore/ci/lint + install-golangci-lint: + name: install-golangci-lint + runs-on: ubuntu-latest + steps: + - name: Install linter + run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.1 + golangci-lint: - name: Lint + needs: install-golangci-lint + name: golangci-lint runs-on: ubuntu-latest env: GOFLAGS: -mod=readonly @@ -38,9 +46,6 @@ jobs: with: go-version-file: ${{ matrix.directory }}/go.mod - - name: Install linter - run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.1 - - name: Lint working-directory: ${{ matrix.directory }} run: make lint