-
Notifications
You must be signed in to change notification settings - Fork 1.2k
46 lines (46 loc) · 1.37 KB
/
axe.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
name: axe
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
axe:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: |
docs/content/components/**/*.md
docs/content/utilities/**/*.md
files_ignore: |
docs/content/components/index.md
docs/content/utilities/index.md
- name: Save changed files
run: |
echo "STRING_OF_PATHS_WE_CARE_ABOUT=${{ steps.changed-files.outputs.all_changed_files }}" >> $GITHUB_ENV
- name: Use Node.js
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm ci
if: steps.changed-files.outputs.any_changed == 'true'
- run: npm run dist
if: steps.changed-files.outputs.any_changed == 'true'
- name: Run docs site
if: steps.changed-files.outputs.any_changed == 'true'
run: |
npm run dev & npx wait-on http://localhost:8000
- name: Run axe script
if: steps.changed-files.outputs.any_changed == 'true'
run: |
script/axe-docs $STRING_OF_PATHS_WE_CARE_ABOUT