mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-18 04:59:12 -04:00
Swap to env files (#200)
* Swap to env files * revert to old method for tests * disable executing of commands during tests * bump package.json @actions/core version
This commit is contained in:
parent
c211e95e60
commit
c6fd00ceb9
7 changed files with 143 additions and 47 deletions
|
@ -20,6 +20,8 @@ describe('authutil tests', () => {
|
|||
.toString(36)
|
||||
.substring(7)
|
||||
);
|
||||
console.log('::stop-commands::stoptoken'); // Disable executing of runner commands when running tests in actions
|
||||
process.env['GITHUB_ENV'] = ''; // Stub out Environment file functionality so we can verify it writes to standard out (toolkit is backwards compatible)
|
||||
const tempDir = path.join(_runnerDir, randPath, 'temp');
|
||||
await io.rmRF(tempDir);
|
||||
await io.mkdirP(tempDir);
|
||||
|
@ -61,6 +63,7 @@ describe('authutil tests', () => {
|
|||
if (_runnerDir) {
|
||||
await io.rmRF(_runnerDir);
|
||||
}
|
||||
console.log('::stoptoken::'); // Re-enable executing of runner commands when running tests in actions
|
||||
}, 100000);
|
||||
|
||||
function readRcFile(rcFile: string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue