You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
setup-go/__tests__
Arne Jørgensen 27a670ec1a
Add support for rc and beta versions in go.mod file
The regex in `parseGoVersionFile()` didn't consider rc and beta
versions. The regex has been extended.

In `findMatch()` the match is checked using `semver.satisfies()`. But
`semver.satisfies()` doesn't no about Go's non-semver rc and beta
version formats (1.16c1 instead of 1.16.0-rc.1).

We cannot use `makeSemver()` on `versionSpec` and compare the result
using `semver.satisfies()` because `versionSpec` could be, well, a
spec. Instead we first check if there is a strict match between the
candidate version and the versionSpec.

Fixes #525.
4 weeks ago
..
data Add support for rc and beta versions in go.mod file 4 weeks ago
cache-restore.test.ts Update default Go module caching to use go.mod (#705) 3 months ago
cache-utils.test.ts Update default Go module caching to use go.mod (#705) 3 months ago
setup-go.test.ts Add support for rc and beta versions in go.mod file 4 weeks ago
utils.test.ts Update self-hosted environment validation and bump undici version (#556) 1 year ago
verify-go.sh Use GitHub releases to download Go versions. (#58) 6 years ago
windows-toolcache.test.ts Fix Install on Windows is very slow (#393) 3 years ago