Swap to Environment Files (#76)

* Swap to env files
This commit is contained in:
Thomas Boop
2020-10-01 10:45:00 -04:00
committed by GitHub
parent 7ff6287c80
commit 37335c7bb2
5 changed files with 106 additions and 44 deletions

View File

@ -35,6 +35,11 @@ describe('setup-go', () => {
let execSpy: jest.SpyInstance;
let getManifestSpy: jest.SpyInstance;
beforeAll(() => {
process.env['GITHUB_PATH'] = ''; // Stub out ENV file functionality so we can verify it writes to standard out
console.log('::stop-commands::stoptoken'); // Disable executing of runner commands when running tests in actions
});
beforeEach(() => {
// @actions/core
inputs = {};
@ -90,7 +95,9 @@ describe('setup-go', () => {
//jest.restoreAllMocks();
});
afterAll(async () => {}, 100000);
afterAll(async () => {
console.log('::stoptoken::'); // Re-enable executing of runner commands when running tests in actions
}, 100000);
it('can find 1.9.7 from manifest on osx', async () => {
os.platform = 'darwin';