Skip to content

Commit bbd6d67

Browse files
committed
feat(workflows): Update test.yml to fix caching issues and specify specific path
1 parent 961f432 commit bbd6d67

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8-
workflow_dispatch:
98

109
jobs:
1110
test:
@@ -24,7 +23,9 @@ jobs:
2423
uses: actions/cache@v3
2524
continue-on-error: true
2625
with:
27-
path: ~/go/pkg/mod
26+
path: |
27+
~/go/pkg/mod
28+
~/.cache/go-build
2829
key: ${{ runner.os }}-go-${{ hashFiles('services/bounty-service/go.sum') }}
2930
restore-keys: |
3031
${{ runner.os }}-go-
@@ -62,6 +63,17 @@ jobs:
6263
with:
6364
go-version: '1.24.3'
6465

66+
- name: Cache Go build
67+
uses: actions/cache@v3
68+
continue-on-error: true
69+
with:
70+
path: |
71+
~/go/pkg/mod
72+
~/.cache/go-build
73+
key: ${{ runner.os }}-go-${{ hashFiles('services/bounty-service/go.sum') }}
74+
restore-keys: |
75+
${{ runner.os }}-go-
76+
6577
- name: Run golangci-lint
6678
uses: golangci/golangci-lint-action@v3
6779
with:

0 commit comments

Comments
 (0)