Skip to content

Commit

Permalink
ci: use action/setup-go's cache
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Aug 21, 2022
1 parent dbf85f6 commit adcea64
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Expand Up @@ -16,6 +16,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '1.17'
cache: true

- uses: actions/checkout@v3

Expand Down Expand Up @@ -44,15 +45,10 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: 1.${{ matrix.go }}.x
cache: true

- uses: actions/checkout@v3

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

- run: |
export GOBIN=$HOME/go/bin
case "${{ matrix.go }}" in
Expand Down

0 comments on commit adcea64

Please sign in to comment.