Skip to content

Commit

Permalink
Bypass another check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlenaSviridenko committed Aug 3, 2021
1 parent c8711b5 commit 40e244d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion __tests__/installer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ describe('installer tests', () => {
}
}, 100000);

it('Uses version of node installed in cache', async () => {
// Usage of pre-cached Node.js is temporarily disabled.
xit('Uses version of node installed in cache', async () => {
const nodeDir: string = path.join(toolDir, 'node', '250.0.0', os.arch());
await io.mkdirP(nodeDir);
fs.writeFileSync(`${nodeDir}.complete`, 'hello');
Expand Down
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12249,7 +12249,8 @@ function getNode(versionSpec) {
// check cache
toolPath = tc.find('node', version);
}
if (!toolPath) {
// Usage of pre-cached Node.js is temporarily disabled.
if (true) {
// download, extract, cache
toolPath = yield acquireNode(version);
}
Expand Down
3 changes: 2 additions & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export async function getNode(versionSpec: string) {
toolPath = tc.find('node', version);
}

if (!toolPath) {
// Usage of pre-cached Node.js is temporarily disabled.
if (true) {
// download, extract, cache
toolPath = await acquireNode(version);
}
Expand Down

0 comments on commit 40e244d

Please sign in to comment.