Skip to content
This repository was archived by the owner on Feb 9, 2021. It is now read-only.

Commit dd324cc

Browse files
committed
disable workflow commands when running in a runner
1 parent c4c5cec commit dd324cc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

__tests__/find-ruby.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ describe('find-ruby', () => {
1212
let cnSpy: jest.SpyInstance;
1313

1414
beforeAll(async () => {
15-
process.env['GITHUB_PATH'] = '';
15+
process.env['GITHUB_PATH'] = ''; // Stub out ENV file functionality so we can verify it writes to standard out
16+
console.log("::stop-commands::stoptoken"); // Disable executing of runner commands when running tests in actions
1617
});
1718

1819
beforeEach(() => {
@@ -31,7 +32,9 @@ describe('find-ruby', () => {
3132
jest.clearAllMocks();
3233
});
3334

34-
afterAll(async () => {}, 100000);
35+
afterAll(async () => {
36+
console.log("::stoptoken::"); // Re-enable executing of runner commands when running tests in actions
37+
}, 100000);
3538

3639
it('finds a version of ruby already in the cache', async () => {
3740
let toolPath = path.normalize('/cache/ruby/2.7.0/x64');

0 commit comments

Comments
 (0)