-
Notifications
You must be signed in to change notification settings - Fork 208
37 lines (31 loc) · 1.24 KB
/
a11y.yaml
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
name: Accessibility checks
env:
SECRET_KEY: insecure_test_key
PORT: 8001
CONTRACTS_API_URL: https://contracts.staging.canonical.com
STRIPE_PUBLISHABLE_KEY: pk_test_yndN9H0GcJffPe0W58Nm64cM00riYG4N46
on: pull_request
jobs:
run-cypress-a11y:
if: github.repository == 'canonical/ubuntu.com'
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install python dependencies
run: pip3 install -r requirements.txt
- name: Cypress run
uses: cypress-io/github-action@v2
with:
env: [email protected],UBUNTU_PASSWORD=jibfdq5hmq,MARKETO_CLIENT_ID=${{secrets.MARKETO_CLIENT_ID}},MARKETO_CLIENT_SECRET=${{secrets.MARKETO_CLIENT_SECRET}},MARKETO_AUTHORISED_USER=${{secrets.MARKETO_AUTHORISED_USER}},MARKETO_TOKEN=${{secrets.MARKETO_TOKEN}}
build: yarn run build
start: yarn run serve
wait-on: "http://0.0.0.0:8001/_status/check"
wait-on-timeout: 180
browser: chrome
config-file: tests/cypress/cypress-a11y.json
config: baseUrl=http://0.0.0.0:8001