Skip to content

Commit

Permalink
ci: add actions/cache step
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Feb 9, 2021
1 parent 646ab7e commit 2b4d7cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/Test.yml
Expand Up @@ -30,6 +30,12 @@ jobs:

- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-${{ matrix.go }}-

- run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $HOME/go/bin/ latest
go install github.com/kyoh86/richgo
Expand Down Expand Up @@ -61,6 +67,12 @@ jobs:
- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-${{ matrix.go }}-

- run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $HOME/go/bin latest
go install github.com/kyoh86/richgo
Expand Down

0 comments on commit 2b4d7cf

Please sign in to comment.