Skip to content

Commit

Permalink
ci(tests): use built-in cache from setup-go
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed Feb 26, 2024
1 parent 642edd3 commit 4464fc5
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: go-${{ matrix.go-version }}-
cache-dependency-path: '**/go.sum'
- run: echo "date=$(date +%Y%m%d)" >> "$GITHUB_OUTPUT"
id: cache
- uses: actions/cache@v4
Expand All @@ -52,13 +46,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: go-${{ hashFiles('**/go.sum') }}
restore-keys: go-
cache-dependency-path: '**/go.sum'
- run: make cover-all
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 4464fc5

Please sign in to comment.