Skip to content

Commit

Permalink
Disable setup-go cache for go 1.13.x.
Browse files Browse the repository at this point in the history
actions/setup-go#304 has been fixed in main,
but we won't get the fix until the next release.
  • Loading branch information
rkoesters committed Mar 10, 2023
1 parent ff0e0b2 commit 7ce6b14
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/go.yml
Expand Up @@ -22,11 +22,21 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
- if: ${{ matrix.go != '1.13.x' }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: true

# Workaround for https://github.com/actions/setup-go/issues/304.
# TODO: Remove workaround after next release of setup-go
- if: ${{ matrix.go == '1.13.x' }}
name: Run actions/setup-go@v3 (cache disabled)
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: false

- run: go build -v github.com/rkoesters/xkcd/...
- run: go test -v -cover github.com/rkoesters/xkcd/...
- run: go vet -v github.com/rkoesters/xkcd/...

0 comments on commit 7ce6b14

Please sign in to comment.