Skip to content

Commit 2948a8f

Browse files
Speed up staticcheck times (#4059)
Use the right cache key and specify all go.sum files.
1 parent 0b09602 commit 2948a8f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/reusable-go-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,20 @@ jobs:
3939
with:
4040
go-version: ${{ matrix.go-version }}
4141
cache: true
42-
cache-dependency-path: tests/go.sum
42+
cache-dependency-path: |
43+
go.sum
44+
tests/go.sum
4345
- name: Staticcheck (api module)
4446
uses: dominikh/staticcheck-action@v1
4547
with:
4648
checks: "-SA1009"
4749
working-directory: api
48-
cache-key: ${{ matrix.go }}
50+
cache-key: ${{ matrix.go-version }}
4951
- name: Staticcheck (tests module)
5052
uses: dominikh/staticcheck-action@v1
5153
with:
5254
checks: "inherit,-SA1019"
53-
cache-key: ${{ matrix.go }}
55+
cache-key: ${{ matrix.go-version }}
5456
working-directory: tests
5557
test:
5658
strategy:

0 commit comments

Comments
 (0)