chore: Clean up cache usage in workflows (#6444)
* chore: Use same cache as bats tests * chore: Clarify cache miss check * chore: Remove use of setup-go cache * chore: Use separate caches * CR
This commit is contained in:
1 parent
c1eae29f24
commit
9c0ea988f5
9 files changed
+184
-126
No files matched your search
@@ -27,6 +27,19 @@ jobs:
|
||||
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
||||
with:
|
||||
go-version: "${{ steps.get-go-version.outputs.go-version }}"
|
||||
cache: false
|
||||
- name: Determine Go cache paths
|
||||
id: go-cache-paths
|
||||
run: |
|
||||
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
|
||||
- name: Set up Go modules cache
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
with:
|
||||
path: |
|
||||
${{ steps.go-cache-paths.outputs.go-mod }}
|
||||
key: go-mod-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
go-mod
|
||||
- name: Install Dependencies
|
||||
# if we really need to we can update this to run `make tools`
|
||||
# later but its just not necessary to only run linters
|
||||
|
||||
Reference in new issue
Block a user