Skip to content

Commit

Permalink
make pa11y run in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Rogers committed May 27, 2024
1 parent b356e92 commit 250ceae
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/e2e-pa11y.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
name: E2E Pa11y

on:
pull_request:
push:
- containerize-pa11y

jobs:
e2e_pa11y:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ci_node_total: [4]
ci_node_index: [1, 2, 3, 4]
env:
CI: true
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
CI_NODE_INDEX: ${{ matrix.ci_node_index }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -42,14 +50,14 @@ jobs:
npm run start:all:ci >> /tmp/pa11y/pa11y-server.txt &
URL=http://localhost:1234 ./wait-until.sh
sleep 20
- name: Run E2E Pa11y 1
run: npm run test:pa11y:1 --node-flags --max-old-space-size=1024
- name: Run E2E Pa11y 2
run: npm run test:pa11y:2 --node-flags --max-old-space-size=1024
- name: Run E2E Pa11y 3
run: npm run test:pa11y:3 --node-flags --max-old-space-size=1024
- name: Run E2E Pa11y 4
run: npm run test:pa11y:4 --node-flags --max-old-space-size=1024
- name: Run E2E Pa11y
run: npm run test:pa11y:${{ matrix.ci_node_index }} --node-flags --max-old-space-size=1024
# - name: Run E2E Pa11y 2
# run: npm run test:pa11y:2 --node-flags --max-old-space-size=1024
# - name: Run E2E Pa11y 3
# run: npm run test:pa11y:3 --node-flags --max-old-space-size=1024
# - name: Run E2E Pa11y 4
# run: npm run test:pa11y:4 --node-flags --max-old-space-size=1024
- name: Store Server Logs
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 250ceae

Please sign in to comment.