Skip to content

Commit

Permalink
test: test actions/cache@v2
Browse files Browse the repository at this point in the history
  • Loading branch information
GGXXLL committed May 28, 2021
1 parent e71d832 commit 9da5675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
go-version: ${{ matrix.go-version }}

- uses: actions/cache@v2
id: cache-go-mod
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('go.mod') }}
Expand All @@ -87,6 +88,7 @@ jobs:
uses: c-py/action-dotenv-to-setenv@v3

- name: Build
if: steps.cache-go-mod.outputs.cache-hit != 'true'
run: go build -v ./...

- name: Test
Expand Down

0 comments on commit 9da5675

Please sign in to comment.