Skip to content

Commit

Permalink
chore(ci): move golangci-lint install to separate job
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Frolov <[email protected]>
  • Loading branch information
Fral738 committed Dec 25, 2024
1 parent 5a0e570 commit 85e5c0b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 85e5c0b

Please sign in to comment.