From 485e91a5d6cd21579cf3bbce8ff020f00f687368 Mon Sep 17 00:00:00 2001 From: Kian Parvin Date: Wed, 28 Aug 2024 16:43:16 +0200 Subject: [PATCH] use cache on lint action --- .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