Skip to content

Commit

Permalink
test: screen-reader
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Apr 24, 2024
1 parent 435cf27 commit 36b97f3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/actions/npm-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -44,3 +44,4 @@ runs:
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm ci
ls ./screen-reader-test/node-modules
5 changes: 4 additions & 1 deletion .github/actions/playwright-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
19 changes: 19 additions & 0 deletions .github/workflows/00-init-playwright.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 36b97f3

Please sign in to comment.