Skip to content

Commit eb89b00

Browse files
committed
add cache
1 parent 3d52377 commit eb89b00

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/framework.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Framework Docker Component Tests
22
on:
33
push:
44
concurrency:
5-
group: ${{ github.workflow }}-${{ github.ref }}-components
5+
group: ${{ github.workflow }}-${{ github.ref }}-framework
66
cancel-in-progress: true
77
jobs:
88
test:
@@ -20,6 +20,21 @@ jobs:
2020
filters: |
2121
src:
2222
- 'framework/**'
23+
- name: Set up Go
24+
uses: actions/setup-go@v4
25+
with:
26+
go-version: 1.22.8
27+
- name: Cache Go modules
28+
uses: actions/cache@v3
29+
with:
30+
path: |
31+
~/.cache/go-build
32+
~/go/pkg/mod
33+
key: go-modules-${{ hashFiles('**/go.sum') }}-${{ runner.os }}-framework
34+
restore-keys: |
35+
go-modules-${{ hashFiles('**/go.sum') }}-${{ runner.os }}-framework
36+
- name: Install dependencies
37+
run: go mod download
2338
- name: Run Docker Component Tests
2439
if: steps.changes.outputs.src == 'true'
2540
run: |

0 commit comments

Comments
 (0)