From 4663c9315bc938a1082af1be46814e2266a21891 Mon Sep 17 00:00:00 2001 From: Kian Parvin <46668016+kian99@users.noreply.github.com> Date: Fri, 30 Aug 2024 14:48:31 +0200 Subject: [PATCH] use cache on lint action (#1332) --- .github/workflows/cache.yaml | 8 +++++++- .github/workflows/golangci-lint.yaml | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml index 3f8ab5ddb..253df3cd7 100644 --- a/.github/workflows/cache.yaml +++ b/.github/workflows/cache.yaml @@ -7,7 +7,7 @@ on: jobs: go_cache: - name: Install And Cache Go Dependencies and Build Artifacts + name: Cache Go Dependencies and Build/Lint Artifacts runs-on: ubuntu-22.04 timeout-minutes: 15 steps: @@ -24,3 +24,9 @@ jobs: - name: Build run: go build ./... + + - name: Run Golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + args: --timeout 30m --verbose + version: v1.60 diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index fc5a7e625..3053f4ec0 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -18,7 +18,6 @@ jobs: uses: actions/setup-go@v5 with: go-version: stable - cache: false - name: Run Golangci-lint uses: golangci/golangci-lint-action@v6