Update sitemap a11y scan #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: A11y Tests | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
playwright-tests: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
env: | |
BASE_URL: 'https://va.gov' | |
USE_PROXY: false | |
strategy: | |
fail-fast: false | |
matrix: | |
shardIndex: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32] | |
shardTotal: [32] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: yarn install | |
- name: Install Playwright browsers | |
run: npx playwright install --with-deps | |
# This is necessary in order for fetch to work. | |
- name: Build proxy-fetcher dist | |
run: | | |
yarn tsc -b ./packages/proxy-fetcher/tsconfig.json | |
- name: Run Playwright tests | |
run: SEGMENT_INDEX=${{ matrix.shardIndex }} yarn playwright test --project=a11y | |
- name: Upload blob report to GitHub Actions Artifacts | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: segment-${{ matrix.shardIndex }}.txt | |
path: segment-${{ matrix.shardIndex }}.txt | |
retention-days: 7 | |
merge-reports: | |
# Merge reports after playwright-tests, even if some shards have failed | |
if: always() | |
needs: [playwright-tests] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: yarn install | |
- name: Download blob reports from GitHub Actions Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: segment-* | |
merge-multiple: true | |
- name: Merge reports | |
run: | | |
cat segment-*.txt > all-segments.txt | |
cat all-segments.txt | |
- name: Upload report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: a11y-scan-${{ github.run_attempt }} | |
path: all-segments.txt | |
retention-days: 14 | |