Skip to content

Commit b1db495

Browse files
committed
feat(bounty-service): Update test.yml to fix caching issues
1 parent 9530f01 commit b1db495

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
workflow_dispatch:
89

910
jobs:
1011
test:
@@ -20,9 +21,10 @@ jobs:
2021

2122
- name: Cache Go modules
2223
uses: actions/cache@v3
24+
continue-on-error: true
2325
with:
2426
path: ~/go/pkg/mod
25-
key: ${{ runner.os }}-go-${{ hashFiles('services/bounty-service/go.sum') }}
27+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
2628
restore-keys: |
2729
${{ runner.os }}-go-
2830
@@ -58,6 +60,15 @@ jobs:
5860
with:
5961
go-version: '1.24.3'
6062

63+
- name: Cache Go modules
64+
uses: actions/cache@v3
65+
continue-on-error: true
66+
with:
67+
path: ~/go/pkg/mod
68+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
69+
restore-keys: |
70+
${{ runner.os }}-go-
71+
6172
- name: Run golangci-lint
6273
uses: golangci/golangci-lint-action@v3
6374
with:

0 commit comments

Comments
 (0)