Skip to content

Commit

Permalink
ci: test modules caching
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth committed Jul 21, 2020
1 parent 4badceb commit 95a33b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,12 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Cache modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: go test -race ./...

0 comments on commit 95a33b6

Please sign in to comment.