diff --git a/.github/workflows/ci_eslint_and_test.yml b/.github/workflows/ci_eslint_and_test.yml index 8a11790721..1aacf456c6 100644 --- a/.github/workflows/ci_eslint_and_test.yml +++ b/.github/workflows/ci_eslint_and_test.yml @@ -70,6 +70,7 @@ jobs: # The result is stored in steps.playwright-version.outputs.version - name: Get installed Playwright version id: playwright-version + # https://stackoverflow.com/a/33426237/24573072 run: echo "::set-output name=version::$(npm ll -p --depth=0 playwright | grep -o "@.*")" # Attempt to restore the correct Playwright browser binaries based on the @@ -78,7 +79,8 @@ jobs: # Note: Playwright's cache directory is hard coded because that's what it # says to do in the docs. There doesn't appear to be a command that prints # it out for us. - - uses: actions/cache@v3 + - name: Attempt to restore playwright from cache + uses: actions/cache@v3 id: playwright-cache with: path: "~/.cache/ms-playwright" @@ -96,7 +98,7 @@ jobs: # If the Playwright browser binaries weren't able to be restored, we tell # paywright to install everything for us. - - name: Install Playwright's dependencies + - name: Install Playwright with dependencies if: steps.playwright-cache.outputs.cache-hit != 'true' run: npx playwright install --with-deps