From 2a8f1e54fc6e147ada86a6c57160eb2ab3103483 Mon Sep 17 00:00:00 2001 From: Wayne Starr Date: Thu, 20 Jun 2024 08:25:49 -0600 Subject: [PATCH] add working-dir --- .github/workflows/test.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3496df0e..cb19d767 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -51,10 +51,11 @@ jobs: registry1Username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }} registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }} ghToken: ${{ secrets.GITHUB_TOKEN }} - + - name: Get installed Playwright version id: playwright-version - run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./tests/package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV + run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV + working-directory: ./tests - name: Cache playwright binaries uses: actions/cache@v3 id: playwright-cache @@ -63,10 +64,13 @@ jobs: ~/.cache/ms-playwright key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} - run: npm ci + working-directory: ./tests - run: npx playwright install --with-deps if: steps.playwright-cache.outputs.cache-hit != 'true' + working-directory: ./tests - run: npx playwright install-deps if: steps.playwright-cache.outputs.cache-hit != 'true' + working-directory: ./tests - name: Test uses: defenseunicorns/uds-common/.github/actions/test@11e591f2ec7d158923d973c85097ce28a5f55db4 # v0.4.5