Skip to content

Commit

Permalink
ci: use the go module caching capabilities coming with actions/setup-…
Browse files Browse the repository at this point in the history
…go >= v4

Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido committed May 20, 2024
1 parent 9a29e68 commit 849269c
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Check out the source code
uses: actions/checkout@v4

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
Expand All @@ -46,19 +49,6 @@ jobs:
printf "\n\nSystem environment:\n\n"
env
- name: Cache the build cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: build-go-${{ matrix.go }}-${{ matrix.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
build-go-${{ matrix.go }}-${{ matrix.os }}
- name: Check out the source code
uses: actions/checkout@v4

- name: Run tests
run: GO_ARGS="-v -race -covermode=atomic -coverprofile=coverage.out" make tests

Expand Down

0 comments on commit 849269c

Please sign in to comment.