diff --git a/.github/actions/npm-cache/action.yml b/.github/actions/npm-cache/action.yml index b296892..de8d52c 100644 --- a/.github/actions/npm-cache/action.yml +++ b/.github/actions/npm-cache/action.yml @@ -33,7 +33,7 @@ runs: uses: actions/cache@v4 id: "cache" with: - path: screen-reader-test/node-modules + path: ./screen-reader-test/node-modules key: ${{ runner.os }}-node-${{ inputs.nodeVersion }}-${{ hashFiles(inputs.packageLockPath) }} restore-keys: | ${{ runner.os }}-node-${{ inputs.nodeVersion }} @@ -44,3 +44,4 @@ runs: if: steps.cache.outputs.cache-hit != 'true' run: | npm ci + ls ./screen-reader-test/node-modules diff --git a/.github/actions/playwright-cache/action.yml b/.github/actions/playwright-cache/action.yml index 2eb03c3..653a378 100644 --- a/.github/actions/playwright-cache/action.yml +++ b/.github/actions/playwright-cache/action.yml @@ -41,4 +41,7 @@ runs: shell: bash working-directory: screen-reader-test if: steps.playwright-cache.outputs.cache-hit != 'true' - run: npx playwright install --with-deps ${{ env.BROWSER }} + run: | + npx playwright install --with-deps ${{ env.BROWSER }} + echo "----" + ls ${{ env.CACHE_PATH }} diff --git a/.github/workflows/00-init-playwright.yml b/.github/workflows/00-init-playwright.yml new file mode 100644 index 0000000..46e2367 --- /dev/null +++ b/.github/workflows/00-init-playwright.yml @@ -0,0 +1,19 @@ +name: 🎭 Init Playwright + +on: + workflow_call: + +jobs: + init-playwright: + name: 🎭 Init Playwright - ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [macos-latest, windows-latest] + steps: + - name: ⏬ Checkout repo + uses: actions/checkout@v4 + + - name: 🔄 Init Cache Default + uses: ./.github/actions/npm-cache diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 708e782..2b58334 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -12,6 +12,9 @@ concurrency: cancel-in-progress: true jobs: + init-playwright: + uses: ./.github/workflows/00-init-playwright.yml + test-screen-reader: uses: ./.github/workflows/02-e2e-screen-reader.yml - + needs: [init-playwright]