* chore: 🤖 add new gh workflow for a11y tests * chore: 🤖 remove a11y dark tests job * chore: 🤖 increase a11y tests timeout
29 lines
908 B
YAML
29 lines
908 B
YAML
name: A11y Tests
|
|
|
|
on:
|
|
pull_request:
|
|
types: [labeled, opened, synchronize, reopened]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
|
|
a11y-test:
|
|
name: Run A11y Tests
|
|
if: contains(github.event.pull_request.labels.*.name, 'a11y-test')
|
|
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
|
timeout-minutes: 35
|
|
steps:
|
|
- uses: browser-actions/setup-chrome@c785b87e244131f27c9f19c1a33e2ead956ab7ce # v1.7.3
|
|
with:
|
|
install-dependencies: true
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda #v4.1.0
|
|
with:
|
|
run_install: false
|
|
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: 20
|
|
cache: 'pnpm'
|
|
cache-dependency-path: '**/pnpm-lock.yaml'
|
|
- run: pnpm install
|
|
- run: pnpm test-a11y |