Properly change to temp directory

This commit is contained in:
Marcus Eide
2020-04-16 09:07:02 +02:00
parent 85752b4795
commit ed32b1d161
2 changed files with 3 additions and 3 deletions
+2
View File
@@ -60,6 +60,8 @@ jobs:
- name: yarn lint, test after creation
working-directory: ${{ steps.generate_tempdir.outputs.tempdir }}/test-app
run: |
pwd
ls -la
yarn lint
yarn test
env:
+1 -3
View File
@@ -38,9 +38,7 @@ async function main() {
? resolvePath(process.env.GITHUB_WORKSPACE)
: resolvePath(__dirname, '..');
const tempDir = process.env.CI
? resolvePath(__dirname)
: await generateTempDir();
const tempDir = process.env.CI ? process.cwd() : await generateTempDir();
process.chdir(tempDir);
await waitForExit(spawnPiped(['yarn', 'init --yes']));