diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index 2520e76..64ebc43 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -3,19 +3,23 @@ import fs = require('fs'); import path = require('path'); const toolDir = path.join(__dirname, 'runner', 'tools'); +const tempDir = path.join(__dirname, 'runner', 'temp'); process.env['RUNNER_TOOL_CACHE'] = toolDir; +process.env['RUNNER_TEMP'] = tempDir; import * as installer from '../src/installer'; describe('installer tests', () => { beforeAll(async () => { await io.rmRF(toolDir); + await io.rmRF(tempDir); }, 300000); afterAll(async () => { try { await io.rmRF(toolDir); + await io.rmRF(tempDir); } catch { console.log('Failed to remove test directories'); } diff --git a/src/index.ts b/src/index.ts index 4ce5145..38b79f9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,5 @@ import * as core from '@actions/core'; import * as installer from './installer'; -import * as path from 'path'; async function run() { try { @@ -8,9 +7,6 @@ async function run() { const channel = core.getInput('channel', {required: false}) || 'stable'; await installer.getFlutter(version, channel); - - const matchersPath = path.join(__dirname, '..', '.github'); - console.log(`##[add-matcher]${path.join(matchersPath, 'flutter.json')}`); } catch (error) { core.setFailed(error.message); }