Skip to content

Commit 90977dd

Browse files
committed
add caching
1 parent bb2348a commit 90977dd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ concurrency:
55
cancel-in-progress: true
66
jobs:
77
test:
8+
permissions:
9+
id-token: write
10+
contents: read
811
runs-on: ${{ matrix.test.vm }}
912
strategy:
1013
fail-fast: false
@@ -68,10 +71,13 @@ jobs:
6871
path: |
6972
~/.cache/go-build
7073
~/go/pkg/mod
71-
key: go-modules-${{ hashFiles('wasp/go.sum') }}-${{ runner.os }}-test
74+
key: go-modules-${{ matrix.test.path }}-${{ hashFiles(format('{0}/go.sum', matrix.test.path)) }}-${{ runner.os }}-test
7275
restore-keys: |
73-
go-modules-${{ runner.os }}-test
74-
go-modules-${{ runner.os }}
76+
go-modules-${{ matrix.test.path }}-${{ runner.os }}-test
77+
go-modules-${{ matrix.test.path }}-${{ runner.os }}
78+
- name: Install dependencies
79+
working-directory: ${{ matrix.test.path }}
80+
run: go mod download
7581
- uses: extractions/setup-just@v2
7682
- name: Run tests
7783
run: |

0 commit comments

Comments
 (0)