From 18c672e9615d5f2a1ba8ded17f13e8c4e625cce6 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Wed, 26 Jan 2022 13:33:30 +0300 Subject: [PATCH] add debug lines --- __tests__/setup-go.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/__tests__/setup-go.test.ts b/__tests__/setup-go.test.ts index 2869b9df9..dda5fbad7 100644 --- a/__tests__/setup-go.test.ts +++ b/__tests__/setup-go.test.ts @@ -696,6 +696,11 @@ describe('setup-go', () => { // a version which is not in the manifest but is in node dist let versionSpec = '1.13'; + console.log( + `process.env['GITHUB_PATH'] = ''; is ${process.env['GITHUB_PATH']}` + ); + process.env['GITHUB_PATH'] = ''; + inputs['go-version'] = versionSpec; inputs['check-latest'] = true; inputs['always-auth'] = false; @@ -733,10 +738,6 @@ describe('setup-go', () => { expect(logSpy).toHaveBeenCalledWith( `Attempting to download ${versionSpec}...` ); - console.log( - `process.env['GITHUB_PATH'] = ''; is ${process.env['GITHUB_PATH']}` - ); - process.env['GITHUB_PATH'] = ''; expect(cnSpy).toHaveBeenCalledWith(`::add-path::${expPath}${osm.EOL}`); });