-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (57 loc) · 1.54 KB
/
accessibility_tests.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Accessibility Tests
on: push
jobs:
mix-test:
name: Run application tests to generate HTML files
runs-on: ubuntu-20.04
env:
MIX_ENV: test
services:
db:
image: postgres
ports: ["5432:5432"]
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTRGES_DB: launch_cart_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Setup App
uses: ./.github/workflows/setup
- name: Run Application Tests
uses: ./.github/workflows/app_test
- uses: actions/upload-artifact@v3
with:
name: html_files
path: test/axe_html/
axe-test:
needs: mix-test
name: Run Accessibility Tests
runs-on: ubuntu-20.04
env:
MIX_ENV: test
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Setup App
uses: ./.github/workflows/setup
- name: Generate css and js for pa11y
shell: bash
run: |
mix assets.deploy
cp -r priv/static/assets/js/ test/axe_html/assets
cp -r priv/static/assets/css/ test/axe_html/assets
- name: Download html files from mix test
uses: actions/download-artifact@v3
with:
name: html_files
path: test/axe_html/
- name: Pa11y Tests
shell: bash
run: ./run_pa11y.sh