-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (51 loc) · 1.87 KB
/
documentation_accessibility_checks.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
name: '[Documentation] Accessibility Check'
# Adapted from https://docusaurus.io/docs/deployment
on:
workflow_dispatch:
push:
branches:
- chanel-8217-accessibility-checks
# paths:
# - VAMobile/src/components/**
# - VAMobile/documentation/**
# - VAMobile/src/utils/hooks.tsx
jobs:
test-deploy:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: 'VAMobile/.nvmrc'
cache: yarn
cache-dependency-path: VAMobile/yarn.lock
- name: Test build
working-directory: VAMobile
run: |
yarn install --frozen-lockfile
cd documentation
yarn install --frozen-lockfile
yarn build
# - name: Run documentation site
# working-directory: VAMobile/documentation
# run: yarn start
# - name: Setup docs
# working-directory: VAMobile/documentation
# run: cd VAMobile && yarn docs
#- name: Wait for server to start
# working-directory: VAMobile/documentation
# run: npx wait-on http://localhost:3000
- name: Run axe
working-directory: VAMobile/documentation
run: |
npm install -g @axe-core/cli
axe http://localhost:3000 --exit
# start_slack_thread:
# name: Start Slack thread
# needs: test-deploy
#uses: ./.github/workflows/start_slack_thread.yml
# secrets: inherit
# with:
# channel_name: va-mobile-build-alerts
# message: 'On demand build started by ${{ github.actor }}: \"${{ inputs.notes }}\" (:git: `${{ github.ref_name }}`). This process may take a while. See :thread: or <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|workflow run> for results.'