Sourced from actions/setup-go's releases.
v4.0.0
In scope of release we enable cache by default. The action won’t throw an error if the cache can’t be restored or saved. The action will throw a warning message but it won’t stop a build process. The cache can be disabled by specifying
cache: false
.steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: go-version: ‘1.19’ - run: go run hello.go
Besides, we introduce such changes as
- Allow to use only GOCACHE for cache
- Bump json5 from 2.2.1 to 2.2.3
- Use proper version for primary key in cache
- Always add Go bin to the PATH
- Add step warning if go-version input is empty
Add support for stable and oldstable aliases
In scope of this release we introduce aliases for the
go-version
input. Thestable
alias instals the latest stable version of Go. Theoldstable
alias installs previous latest minor release (the stable is 1.19.x -> the oldstable is 1.18.x).Stable
steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: 'stable' - run: go run hello.go
OldStable
steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: 'oldstable' - run: go run hello.go
Add support for go.work and pass the token input through on GHES
In scope of this release we added support for go.work file to pass it in go-version-file input.
steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 </tr></table>
... (truncated)
4d34df0
Update configuration files (#348)fdc0d67
Add Go bin if go-version input is empty (#351)ebfdf6a
add warning if go-version is empty (#350)b27d769
fix lockfileVersion (#349)c51a720
Enable caching by default with default input (#332)6b848af
Merge pull request #343
from akv-platform/reusable-workflow12741cc
Format update-config-files.yml7a77a6a
Merge branch 'main' into reusable-workflow42a0cc8
Add update-config-files.yml7406d65
Add and configure ESLint and update configuration for Prettier (#341)