forked from ustaxcourt/ef-cms
-
Notifications
You must be signed in to change notification settings - Fork 10
59 lines (56 loc) · 1.8 KB
/
e2e-pa11y-public.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
name: E2E Pa11y Public (Search)
on:
pull_request:
jobs:
e2e_pa11y_public:
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Runs Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 7.10.2
security-enabled: false
- name: Setup DynamoDB Local
uses: rrainn/[email protected]
with:
port: 8000
cors: '*'
- name: Collect Workflow Telemetry
uses: runforesight/workflow-telemetry-action@v1
with:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: Start API and Client
run: |
mkdir -p /tmp/pa11y/
npm run start:all:ci >> /tmp/pa11y/pa11y-server.txt &
./wait-until-services.sh
URL=http://localhost:5000/public-api/health ./wait-until.sh
sleep 10
- name: Run E2E Pa11y Public
run: npm run test:pa11y:public --node-flags --max-old-space-size=1536
- name: Run E2E Pa11y Public Search
run: npm run test:pa11y:public-search --node-flags --max-old-space-size=1536
- name: Store Screenshots Artifacts
uses: actions/upload-artifact@v3
with:
name: screen-shots
path: ${{ github.workspace }}/web-client/pa11y/pa11y-screenshots
- name: Store Server Logs
uses: actions/upload-artifact@v3
with:
name: server-logs
path: /tmp/pa11y