Skip to content

Commit

Permalink
ci: use action/setup-go's cache (#1783)
Browse files Browse the repository at this point in the history
* ci: use action/setup-go's cache
* ci: deprecate Golang 1.14
  • Loading branch information
umarcor committed Sep 14, 2022
1 parent 7e289f4 commit 4065a33
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/test.yml
Expand Up @@ -13,10 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version: '^1.19'
check-latest: true
cache: true

- uses: actions/checkout@v3

Expand All @@ -33,7 +36,6 @@ jobs:
- ubuntu
- macOS
go:
- 14
- 15
- 16
- 17
Expand All @@ -43,17 +45,12 @@ jobs:
runs-on: ${{ matrix.platform }}-latest
steps:

- uses: actions/setup-go@v3
with:
go-version: 1.${{ matrix.go }}.x

- uses: actions/checkout@v3

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

- run: |
export GOBIN=$HOME/go/bin
Expand Down

0 comments on commit 4065a33

Please sign in to comment.