mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 10:26:46 +00:00
created separate util module
This commit is contained in:
parent
1ecbe18c8b
commit
5e3159d960
6 changed files with 145 additions and 42 deletions
|
@ -17,18 +17,19 @@ jest.mock('@actions/exec', () => {
|
|||
};
|
||||
});
|
||||
|
||||
const tempDir = path.join(__dirname, 'runner', 'temp');
|
||||
process.env['RUNNER_TEMP'] = tempDir;
|
||||
|
||||
import * as auth from '../src/auth';
|
||||
|
||||
const m2Dir = path.join(__dirname, auth.M2_DIR);
|
||||
const settingsFile = path.join(m2Dir, auth.SETTINGS_FILE);
|
||||
const tempDir = path.join(__dirname, 'runner', 'temp');
|
||||
const privateKeyFile = path.join(tempDir, auth.PRIVATE_KEY_FILE);
|
||||
|
||||
process.env['RUNNER_TEMP'] = tempDir;
|
||||
|
||||
describe('auth tests', () => {
|
||||
beforeEach(async () => {
|
||||
await io.rmRF(m2Dir);
|
||||
await io.mkdirP(tempDir);
|
||||
}, 300000);
|
||||
|
||||
afterAll(async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue