Skip to content

Commit

Permalink
use cache on lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 committed Aug 28, 2024
1 parent 6c1d24d commit 485e91a
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 485e91a

Please sign in to comment.