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 22, 2024
1 parent 445b74e commit 3003d9b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/actions/npm-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ runs:
- name: 🆒 Init Cache
uses: actions/cache@v4
working-directory: screen-reader-test
id: "cache"
with:
path: ${{ inputs.nodeModulesPath }}
Expand All @@ -40,6 +41,7 @@ runs:
${{ runner.os }}-node-${{ inputs.nodeVersion }}
- name: ⏬ NPM ci
working-directory: screen-reader-test
shell: bash
if: steps.cache.outputs.cache-hit != 'true'
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/actions/playwright-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
env:
OS: ${{ runner.os }}
run: |
if [[ $OS == "windows-latest" ]]; then
if [[ $OS == "Windows" ]]; then
echo "PATH=C:\Users\runneradmin\AppData\Local\ms-playwright" >> "$GITHUB_ENV"
echo "BROWSER=chromium" >> "$GITHUB_ENV"
else
Expand All @@ -19,12 +19,14 @@ runs:
- name: 🆒 Cache Playwright binaries
uses: actions/cache@v4
working-directory: screen-reader-test
id: cache-playwright
with:
path: ${{ env.PATH }}
key: ${{ runner.os }}-playwright-${{ hashFiles('./screen-reader-test/package-lock.json') }}
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}

- name: ⏬ Install Playwright Browsers
working-directory: screen-reader-test
shell: bash
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: |
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/01-get-playwright-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
- name: ⏬ Checkout repo
uses: actions/checkout@v4

- name: 🔄 Init Cache
uses: ./.github/actions/npm-cache

- name: 🪁 Get playwright version
uses: actions/github-script@v7
id: version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/02-e2e-screen-reader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
os: ${{ matrix.os }}

- name: 👩‍🔬 Test showcase with Playwright 🎭
working-directory: ./screen-reader-test
working-directory: screen-reader-test
env:
HOME: /root
run: |
Expand Down

0 comments on commit 3003d9b

Please sign in to comment.