Skip to content

Commit

Permalink
CI: use a single cache for tests (#5266)
Browse files Browse the repository at this point in the history
* CI: use a single cache for tests

Broadly the same set of files (mostly dependencies) will be compiled for every set of tests.

* Removed '-0' in the cache key

Signed-off-by: Marco Pracucci <[email protected]>

---------

Signed-off-by: Marco Pracucci <[email protected]>
Co-authored-by: Marco Pracucci <[email protected]>
  • Loading branch information
bboreham and pracucci authored Jan 18, 2024
1 parent 8561e6f commit b6216b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ jobs:
- name: Cache Go build cache
uses: actions/cache@v3
with:
key: test-${{ matrix.test_group_id }}-go-build-${{ runner.os }}-${{ hashFiles('go.mod', 'go.sum') }}
# Cache is shared between test groups.
key: test-go-build-${{ runner.os }}-${{ hashFiles('go.mod', 'go.sum') }}
path: ${{ steps.gocache.outputs.path }}
- name: Run Tests
run: |
Expand Down Expand Up @@ -319,7 +320,8 @@ jobs:
- name: Cache Go build cache
uses: actions/cache@v3
with:
key: integration-${{ matrix.test_group_id }}-go-build-${{ runner.os }}-${{ hashFiles('go.mod', 'go.sum') }}
# Cache is shared between test groups.
key: integration-go-build-${{ runner.os }}-${{ hashFiles('go.mod', 'go.sum') }}
path: ${{ steps.gocache.outputs.path }}
- name: Download Archive with Docker Images
uses: actions/download-artifact@v4
Expand Down

0 comments on commit b6216b7

Please sign in to comment.