mirror of
https://github.com/actions/setup-go.git
synced 2025-04-23 17:40:50 +00:00
Remove pre-release version test
This commit is contained in:
parent
b84de5a54c
commit
5eeccbc43e
1 changed files with 0 additions and 16 deletions
|
@ -142,22 +142,6 @@ describe('setup-go', () => {
|
||||||
expect(fileName).toBe('go1.14.windows-386.zip');
|
expect(fileName).toBe('go1.14.windows-386.zip');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('finds unstable pre-release version', async () => {
|
|
||||||
os.platform = 'linux';
|
|
||||||
os.arch = 'x64';
|
|
||||||
|
|
||||||
// spec: 1.14.1, stable=false => go1.14.1rc1
|
|
||||||
let match: im.IGoVersion | undefined = await im.findMatch(
|
|
||||||
'1.14.1-rc1',
|
|
||||||
false
|
|
||||||
);
|
|
||||||
expect(match).toBeDefined();
|
|
||||||
let version: string = match ? match.version : '';
|
|
||||||
expect(version).toBe('go1.14.1rc1');
|
|
||||||
let fileName = match ? match.files[0].filename : '';
|
|
||||||
expect(fileName).toBe('go1.14.1rc1.linux-amd64.tar.gz');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('evaluates to stable with input as true', async () => {
|
it('evaluates to stable with input as true', async () => {
|
||||||
inputs['go-version'] = '1.13.0';
|
inputs['go-version'] = '1.13.0';
|
||||||
inputs.stable = 'true';
|
inputs.stable = 'true';
|
||||||
|
|
Loading…
Add table
Reference in a new issue