Skip to content

Commit

Permalink
use cache on lint action (canonical#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 committed Sep 3, 2024
1 parent ce773e7 commit 9a8f1b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
1 change: 0 additions & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a8f1b1

Please sign in to comment.