-
Notifications
You must be signed in to change notification settings - Fork 8
74 lines (73 loc) · 2.72 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
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
name: Test accessibility with axe-core on Browserstack
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
test_for_accessibility_issues:
runs-on: ubuntu-latest
environment:
name: development
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
NEXT_PUBLIC_ARCHIVE_CONTENT_LINK: ${{ vars.ARCHIVE_CONTENT_LINK }}
steps:
- name: BrowserStack Env Setup 🌎 # Invokes the setup-env action
id: setup-browserstack-environment
uses: browserstack/github-actions/setup-env@master
with:
username: ${{ secrets.BROWSERSTACK_USERNAME }}
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: BrowserStack Local Tunnel Setup 🚇 # Invokes the setup-local action
id: setup-local-browserstack-tunnel
uses: browserstack/github-actions/setup-local@master
with:
local-testing: start
local-identifier: random
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Cache pnpm modules 💾
uses: actions/cache@v3
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- name: Install pnpm 📦
id: install-pnpm
uses: pnpm/[email protected]
with:
version: '^8.5.1'
- name: Install dependencies 🔧
id: install-dependencies
run: |
pnpm install --filter energy-vision
pnpm install --filter energy-vision-web
pnpm install --filter energy-vision-e2e-testing
- name: Build web application ⚙️
id: build-web-app
run: pnpm web build
- name: Running application under test ▶️
id: run-webapp
run: pnpm web start &
- name: Running test on BrowserStack 🔎
id: execute-tests-on-browserstack
run: pnpm e2e test
- name: BrowserStackLocal Stop ✋ # Terminating the BrowserStackLocal tunnel connection
id: stop-browserstack
uses: browserstack/github-actions/setup-local@master
with:
local-testing: stop
- name: Publish results to Slack 💬
id: publish-to-slack
uses: equinor/[email protected]
with:
fileName: e2e/output/Chrome_envis_news_report.json ## Temporary file name. Will use something more clever. Promise!
- name: log-errors-to-slack 📄
uses: act10ns/slack@v2
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
if: failure()