Commit Graph

47 Commits (79faedd6fd218bab14739522d1685cf1787f7823)

Author SHA1 Message Date
IvanZosimov 2490b9d130 Merge branch 'main' into modules-caching 3 years ago
Brian Cristante 193b404f8a
Successfully set up (#231) 3 years ago
Ivan Zosimov eedb42bbf8 Sync branch 'modules-caching' with 'actions/setup-go/main' 3 years ago
Ivan Zosimov c64d0e04b0 Adjust unit-tests for supporting new feature 3 years ago
Nick 4a4352b330
Add 'go-version' Output (#85)
* Add go-version to action outputs

This provides the semver version of Go that has been installed. This is useful
if only a major or minor version has been provided as the input go-version
value.

* Convert version extraction to a function

Simplify how the version is extracted and add a simple test at the same
time.

Co-authored-by: Peter Mescalchin <peter@magnetikonline.com>
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>

Co-authored-by: Peter Mescalchin <peter@magnetikonline.com>
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
3 years ago
Ivan Zosimov d8930c523d Add unit tests to the new feature 3 years ago
Ivan Zosimov c1691a39b4 Change text message in unit-test related to cache-restore file 3 years ago
Ivan Zosimov 2968ddac8d Format text of messages in the unit-tests 3 years ago
Ivan Zosimov 104f9bb034 Add unit-tests for cache-restore file 3 years ago
Ivan Zosimov 1a1c412f7e Merge branch 'modules-caching' into modules-caching-tests 3 years ago
Ivan Zosimov ed123a232f Merge branch 'main' into modules-caching 3 years ago
Josh Gross 0c03929337
Remove duplicated `spyOn` 3 years ago
Josh Gross 802876f7c7
Fix formatting 3 years ago
Josh Gross 2a34c33bd7
Export `GOROOT` for versions < 1.9 3 years ago
Manuel Mendez 83124a14b6 Do not export GOROOT
This has not been necessary since [Go 1.9](https://go.dev/doc/go1.9#goroot) at
least (although clunky to do so then) but definitely not since
[Go 1.10](https://go.dev/doc/go1.10#goroot).

This is cargo culting code that is more than 2 years out of date and runs into
issues when multiple go versions are used in an action run.

Signed-off-by: Manuel Mendez <mmendez534@gmail.com>
3 years ago
Manuel Mendez ec07be593a Add test for export of GOROOT to env var
Signed-off-by: Manuel Mendez <mmendez534@gmail.com>
3 years ago
Ivan Zosimov (Akvelon INC) c8d315d95f Merge branch 'main' into modules-caching 3 years ago
Ivan Zosimov (Akvelon INC) 4d62da4173 Add some unit tests fot cache-utils.ts file 3 years ago
Dmitry Shibanov f6164bd8c8
Remove stable input and fix SemVer notation (#195) 3 years ago
Ivan Zosimov (Akvelon INC) 2e1e7c7d7e Make some small changes according to review points 3 years ago
Dmitry Shibanov bfdd3570ce
Implement "check-latest" flag to check if pre-cached version is latest one (#186) 3 years ago
Dominik Honnef fdeec47002
Don't require relative paths to start with ./ or ../ (#98) 4 years ago
Thomas Boop 37335c7bb2
Swap to Environment Files (#76)
* Swap to env files
5 years ago
Dmitry Shibanov 1616116e1b
Use GitHub releases to download Go versions. (#58) 5 years ago
Bryan MacFarlane e36ce1d6cf tabs or spaces 5 years ago
Bryan MacFarlane 0a62a734da another test case 5 years ago
Bryan MacFarlane 5156bc5dd3 lint 5 years ago
Bryan MacFarlane 7837b03976 more tests 5 years ago
Bryan MacFarlane 74c8095946 lint 5 years ago
Bryan MacFarlane 34223181a5 starting 5 years ago
Bryan MacFarlane 1c06f0e82e couple tests 5 years ago
Bryan MacFarlane 768458bd0b pre-release version and test 6 years ago
Bryan MacFarlane 43880314e9 CR feedback 6 years ago
Bryan MacFarlane 7d57e56d4d update tests 6 years ago
Bryan MacFarlane 6cb99a33d7 another test 6 years ago
Bryan MacFarlane 241a335117 mock os instead of system 6 years ago
Bryan MacFarlane 79b62adb05 another test and bugs 6 years ago
Bryan MacFarlane 7af81a4a65 bit of cleanup 6 years ago
Bryan MacFarlane f4b0281c15 mocked tests work with no internet 6 years ago
Bryan MacFarlane dc575ee3b3 format 6 years ago
Bryan MacFarlane 4282769cc0 starting v2 and proxy support 6 years ago
Alif Rachmawadi bc6edb526d
update test assertion 6 years ago
Alif Rachmawadi 21620fff65
use golang-dl release data 6 years ago
Alif Rachmawadi 632d18fc92 Handle .x version syntax with latest release (#13)
* get latest release for .x syntax version

* added nock as dev dependency

* added test for .x syntax

* updated readme

* updated http client name

* use rest client for getting available versions

* more .x handling

* move nock to setup and teardown
6 years ago
Stephen Franceschelli 136ed85710 Fix build. (#7)
* Fix.

* Husky commit correct node modules
6 years ago
Danny McCormick f34fd68566 Add installer 6 years ago
Danny McCormick cd176c696b Add setup-go 6 years ago