-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (64 loc) · 1.56 KB
/
qa.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
#
# Run UI integration specs after accessibility tests
#
---
name: QA Framework
on:
workflow_dispatch:
inputs:
workspace:
description: Deployment workspace to test against (dev, pr-xxx)
type: string
default: dev
# pull_request:
# merge_group:
# deployment_status:
workflow_run:
workflows:
- Check WCAG Standards
branches:
- main
types:
- completed
env:
BASE_URL: https://ey-recovery-${{ inputs.workspace || 'dev' }}.london.cloudapps.digital
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}
jobs:
test:
name: QA checks
runs-on: ubuntu-latest
# https://docs.github.com/en/actions/using-containerized-services/about-service-containers
services:
chrome:
image: selenium/standalone-chrome:latest
ports:
- 4441:4444
firefox:
image: selenium/standalone-firefox:latest
ports:
- 4442:4444
steps:
-
name: Checkout deployed code
uses: actions/checkout@v3
# with:
# ref: ${{ github.event.workflow_run.head_branch }}
-
name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.3
bundler-cache: true
-
name: Install Rubygems
run: bundle install --jobs 20 --retry 3
-
name: Use Chrome
env:
BROWSER: standalone_chrome
run: bundle exec rspec --default-path ui
-
name: Use Firefox
env:
BROWSER: standalone_firefox
run: bundle exec rspec --default-path ui