Skip to content

Commit 1ef76ed

Browse files
Ajoute CI pour accessibilité
1 parent 543e962 commit 1ef76ed

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Accessibility Tests
2+
3+
on:
4+
push:
5+
branches-ignore: [main]
6+
pull_request:
7+
branches-ignore: [main]
8+
9+
jobs:
10+
accessibility:
11+
runs-on: ubuntu-22.04
12+
env:
13+
NEXT_TELEMETRY_DISABLED: 1
14+
15+
steps:
16+
- name: Checkout 🛎️
17+
uses: actions/checkout@v4.1.1
18+
19+
- uses: pnpm/action-setup@v4
20+
name: Install pnpm
21+
with:
22+
version: 8.6.2
23+
run_install: false
24+
25+
- name: Setup Node 🔧
26+
uses: actions/setup-node@v4.0.0
27+
with:
28+
node-version: 20
29+
cache: pnpm
30+
cache-dependency-path: pnpm-lock.yaml
31+
32+
- name: Install Dependencies 💾
33+
run: pnpm install
34+
35+
- name: Build Application 📦
36+
run: pnpm build
37+
env:
38+
GITHUB_CI: true
39+
40+
- name: Start Application 🚀
41+
run: |
42+
pnpm start &
43+
echo "Waiting for application to start..."
44+
timeout 60 bash -c 'until curl -f http://localhost:3000 > /dev/null 2>&1; do sleep 1; done'
45+
env:
46+
GITHUB_CI: true
47+
48+
- name: Web Accessibility Evaluation ♿
49+
uses: a11ywatch/github-action@v2.1.10
50+
with:
51+
WEBSITE_URL: http://localhost:3000
52+
SITE_WIDE: false
53+
LIST: true
54+
FAIL_ERRORS_COUNT: 10
55+
UPLOAD: true
56+
env:
57+
DEFAULT_RUNNERS: htmlcs,axe
58+
PAGEMIND_IGNORE_WARNINGS: true

0 commit comments

Comments
 (0)