chore(ci): add explicit go modules cache to validation workflows

This commit is contained in:
Micheal Wilkinson
2026-03-21 13:12:42 +00:00
parent a92ab1a29c
commit fb4b3f7ed1
2 changed files with 20 additions and 0 deletions

View File

@@ -35,6 +35,16 @@ jobs:
cache: true cache: true
cache-dependency-path: go.sum cache-dependency-path: go.sum
- name: Cache Go modules and build cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-modules-${{ hashFiles('**/go.mod', '**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-modules-
- name: Cache security tools - name: Cache security tools
uses: actions/cache@v4 uses: actions/cache@v4
with: with:

View File

@@ -35,6 +35,16 @@ jobs:
cache: true cache: true
cache-dependency-path: go.sum cache-dependency-path: go.sum
- name: Cache Go modules and build cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-modules-${{ hashFiles('**/go.mod', '**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-modules-
- name: Cache security tools - name: Cache security tools
uses: actions/cache@v4 uses: actions/cache@v4
with: with: