Skip to content

Commit

Permalink
chore: Test caching to speed up test action (#1812)
Browse files Browse the repository at this point in the history
* test caching to speed up test action

* test removing cache

* add cache dependency path for all go.sum

* test w/o recursive go.sum match

* Revert "test w/o recursive go.sum match"

This reverts commit b2bf7a8.
  • Loading branch information
dpaasman00 authored Aug 28, 2024
1 parent d65b4c2 commit 0c9e4ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/multi_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: |
go.sum
**/go.sum
- name: Build
run: make build-linux
- name: Scan Third Party Dependency Licenses
Expand All @@ -31,6 +34,9 @@ jobs:
with:
go-version: "1.21"
check-latest: true
cache-dependency-path: |
go.sum
**/go.sum
- name: Build
run: make build-darwin
- name: Scan Third Party Dependency Licenses
Expand All @@ -47,6 +53,9 @@ jobs:
with:
go-version: "1.21"
check-latest: true
cache-dependency-path: |
go.sum
**/go.sum
- name: Build
run: make build-windows
- name: Scan Third Party Dependency Licenses
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: |
go.sum
**/go.sum
- name: Run Tests
run: make test
- name: Run Updater Integration Tests (non-linux)
Expand Down

0 comments on commit 0c9e4ba

Please sign in to comment.