|
|
|
@ -171,7 +171,8 @@ describe('setup-node', () => {
|
|
|
|
|
// Found in cache tests
|
|
|
|
|
//--------------------------------------------------
|
|
|
|
|
|
|
|
|
|
it('finds version in cache with stable true', async () => {
|
|
|
|
|
// Usage of pre-cached Node.js versions is temporarily disabled.
|
|
|
|
|
xit('finds version in cache with stable true', async () => {
|
|
|
|
|
inputs['node-version'] = '12';
|
|
|
|
|
inputs.stable = 'true';
|
|
|
|
|
|
|
|
|
@ -182,7 +183,8 @@ describe('setup-node', () => {
|
|
|
|
|
expect(logSpy).toHaveBeenCalledWith(`Found in cache @ ${toolPath}`);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('finds version in cache with stable not supplied', async () => {
|
|
|
|
|
// Usage of pre-cached Node.js versions is temporarily disabled.
|
|
|
|
|
xit('finds version in cache with stable not supplied', async () => {
|
|
|
|
|
inputs['node-version'] = '12';
|
|
|
|
|
|
|
|
|
|
inSpy.mockImplementation(name => inputs[name]);
|
|
|
|
@ -194,7 +196,8 @@ describe('setup-node', () => {
|
|
|
|
|
expect(logSpy).toHaveBeenCalledWith(`Found in cache @ ${toolPath}`);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('finds version in cache and adds it to the path', async () => {
|
|
|
|
|
// Usage of pre-cached Node.js versions is temporarily disabled.
|
|
|
|
|
xit('finds version in cache and adds it to the path', async () => {
|
|
|
|
|
inputs['node-version'] = '12';
|
|
|
|
|
|
|
|
|
|
inSpy.mockImplementation(name => inputs[name]);
|
|
|
|
@ -384,7 +387,8 @@ describe('setup-node', () => {
|
|
|
|
|
}, 100000);
|
|
|
|
|
|
|
|
|
|
describe('check-latest flag', () => {
|
|
|
|
|
it('use local version and dont check manifest if check-latest is not specified', async () => {
|
|
|
|
|
// Usage of pre-cached Node.js versions is temporarily disabled.
|
|
|
|
|
xit('use local version and dont check manifest if check-latest is not specified', async () => {
|
|
|
|
|
os.platform = 'linux';
|
|
|
|
|
os.arch = 'x64';
|
|
|
|
|
|
|
|
|
@ -405,7 +409,8 @@ describe('setup-node', () => {
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('check latest version and resolve it from local cache', async () => {
|
|
|
|
|
// Usage of pre-cached Node.js versions is temporarily disabled.
|
|
|
|
|
xit('check latest version and resolve it from local cache', async () => {
|
|
|
|
|
os.platform = 'linux';
|
|
|
|
|
os.arch = 'x64';
|
|
|
|
|
|
|
|
|
@ -556,7 +561,8 @@ describe('setup-node', () => {
|
|
|
|
|
inputs.stable = 'true';
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('find latest LTS version and resolve it from local cache (lts/erbium)', async () => {
|
|
|
|
|
// Usage of pre-cached Node.js versions is temporarily disabled.
|
|
|
|
|
xit('find latest LTS version and resolve it from local cache (lts/erbium)', async () => {
|
|
|
|
|
// arrange
|
|
|
|
|
inputs['node-version'] = 'lts/erbium';
|
|
|
|
|
|
|
|
|
@ -626,7 +632,8 @@ describe('setup-node', () => {
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('find latest LTS version and resolve it from local cache (lts/*)', async () => {
|
|
|
|
|
// Usage of pre-cached Node.js versions is temporarily disabled.
|
|
|
|
|
xit('find latest LTS version and resolve it from local cache (lts/*)', async () => {
|
|
|
|
|
// arrange
|
|
|
|
|
inputs['node-version'] = 'lts/*';
|
|
|
|
|
|
|
|
|
|