mirror of
https://github.com/ivuorinen/actions.git
synced 2026-03-06 17:56:06 +00:00
refactor(go): remove redundant caching from Go actions
Remove redundant common-cache usage in Go actions since setup-go with cache:true already provides comprehensive caching. Changes: - go-build: Removed duplicate common-cache step (setup-go caches ~/go/pkg/mod and ~/.cache/go-build automatically) - go-lint: Removed redundant ~/.cache/go-build from cache paths (kept ~/.cache/golangci-lint as it's linter-specific and not covered by setup-go) Performance improvements: - Eliminates duplicate caching operations - Reduces action initialization overhead - setup-go's native caching is more efficient and maintained setup-go with cache:true caches: - ~/go/pkg/mod (Go modules) - ~/.cache/go-build (Go build cache)
This commit is contained in:
@@ -215,13 +215,13 @@ runs:
|
||||
with:
|
||||
token: ${{ inputs.token || github.token }}
|
||||
|
||||
- name: Set up Cache
|
||||
- name: Cache golangci-lint
|
||||
id: cache
|
||||
if: inputs.cache == 'true'
|
||||
uses: ivuorinen/actions/common-cache@0fa9a68f07a1260b321f814202658a6089a43d42
|
||||
with:
|
||||
type: 'go'
|
||||
paths: '~/.cache/golangci-lint,~/.cache/go-build'
|
||||
paths: '~/.cache/golangci-lint'
|
||||
key-prefix: 'golangci-${{ inputs.golangci-lint-version }}'
|
||||
key-files: 'go.sum,${{ inputs.config-file }}'
|
||||
restore-keys: '${{ runner.os }}-golangci-${{ inputs.golangci-lint-version }}-'
|
||||
|
||||
Reference in New Issue
Block a user