mirror of
https://github.com/actions/setup-go.git
synced 2025-06-30 05:03:43 +00:00
Sync branch 'modules-caching' with 'actions/setup-go/main'
This commit is contained in:
commit
eedb42bbf8
11 changed files with 131 additions and 65 deletions
|
@ -105,6 +105,11 @@ describe('setup-go', () => {
|
|||
jest.restoreAllMocks();
|
||||
}, 100000);
|
||||
|
||||
it('can extract the major.minor.patch version from a given Go version string', async () => {
|
||||
const goVersionOutput = 'go version go1.16.6 darwin/amd64';
|
||||
expect(main.parseGoVersion(goVersionOutput)).toBe('1.16.6');
|
||||
});
|
||||
|
||||
it('can find 1.9.7 from manifest on osx', async () => {
|
||||
os.platform = 'darwin';
|
||||
os.arch = 'x64';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue