-
Notifications
You must be signed in to change notification settings - Fork 4
115 lines (109 loc) · 3.69 KB
/
cas_a11y_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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: CAS A11y Tests
on:
repository_dispatch:
types: [code_deploy]
inputs:
domain:
description: 'Testing Environment'
required: true
default: 'stage1'
type: string
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
domain:
description: 'Testing Environment'
required: true
default: 'stage3'
type: choice
options:
- test
- stage1
- stage2
- stage3
env:
DRIVER: "Remote"
DOMAIN: ${{ github.event.inputs.domain }}
NEW_USER_EMAIL: ${{ secrets.NEW_USER_EMAIL }}
BSTACK_USER: ${{ secrets.BROWSERSTACK_USERNAME }}
BSTACK_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
CHROME_USER: ${{ secrets.CHROME_USER }}
CHROME_USER_TOKEN: ${{ secrets.CHROME_USER_TOKEN }}
EDGE_USER: ${{ secrets.EDGE_USER }}
EDGE_USER_TOKEN: ${{ secrets.EDGE_USER_TOKEN }}
FIREFOX_USER: ${{ secrets.FIREFOX_USER }}
FIREFOX_USER_TOKEN: ${{ secrets.FIREFOX_USER_TOKEN }}
USER_ONE: ${{ secrets.USER_ONE }}
USER_ONE_PASSWORD: ${{ secrets.USER_ONE_PASSWORD }}
USER_TWO: ${{ secrets.USER_TWO }}
USER_TWO_PASSWORD: ${{ secrets.USER_TWO_PASSWORD }}
DEACTIVATED_USER: ${{ secrets.DEACTIVATED_USER }}
DEACTIVATED_USER_PASSWORD: ${{ secrets.DEACTIVATED_USER_PASSWORD }}
UNCONFIRMED_USER: ${{ secrets.UNCONFIRMED_USER }}
UNCONFIRMED_USER_PASSWORD: ${{ secrets.UNCONFIRMED_USER_PASSWORD }}
CAS_2FA_USER: ${{ secrets.CAS_2FA_USER }}
CAS_2FA_USER_PASSWORD: ${{ secrets.CAS_2FA_USER_PASSWORD }}
CAS_TOS_USER: ${{ secrets.CAS_TOS_USER }}
CAS_TOS_USER_PASSWORD: ${{ secrets.CAS_TOS_USER_PASSWORD }}
DEVAPP_CLIENT_ID: ${{ secrets.DEVAPP_CLIENT_ID }}
DEVAPP_CLIENT_SECRET: ${{ secrets.DEVAPP_CLIENT_SECRET }}
IMAP_EMAIL: ${{ secrets.IMAP_EMAIL }}
IMAP_EMAIL_PASSWORD: ${{ secrets.IMAP_EMAIL_PASSWORD }}
IMAP_HOST: ${{ secrets.IMAP_HOST }}
A11Y_REGISTRATIONS_USER: ${{ secrets.A11Y_REGISTRATIONS_USER }}
A11Y_REGISTRATIONS_PASSWORD: ${{ secrets.A11Y_REGISTRATIONS_PASSWORD }}
jobs:
build:
runs-on: ubuntu-20.04
env:
GHA_DISTRO: ubuntu-20.04
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
matrix:
python-version: [3.9.2]
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache Build Requirements
id: pip-cache-step
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.GHA_DISTRO }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
- name: install dependencies
if: steps.pip-cache-step.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
invoke requirements
staging_test:
name: Staging tests (${{ matrix.browser }})
needs: build
runs-on: ubuntu-20.04
env:
GHA_DISTRO: ubuntu-20.04
strategy:
fail-fast: false
max-parallel: 1 # run in series
matrix:
browser: [chrome, firefox, edge]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9.2
uses: actions/setup-python@v4
with:
python-version: 3.9.2
- name: Cache pip
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.GHA_DISTRO }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
- name: run staging tests
env:
TEST_BUILD: ${{ matrix.browser }}
run: |
invoke test_cas_accessibility