-
Notifications
You must be signed in to change notification settings - Fork 87
45 lines (40 loc) · 1.17 KB
/
ci.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
name: build
on:
push:
branches: [ gh-pages ]
pull_request:
branches: [ gh-pages ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Build Jekyll
run: bundle exec jekyll build
- name: Markdownlint
run: bundle exec mdl -s markdownlint-config.rb .
- name: HTMLProofer
run: bundle exec htmlproofer ./_site --disable-external --allow-hash-href --no-enforce-https
# Accessibility scan
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Scan for accessibility issues
uses: microsoft/accessibility-insights-action@v3
with:
static-site-dir: ${{ github.workspace }}/_site
scan-timeout: 600000
fail-on-accessibility-error: false
- name: Upload accessibility report
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: accessibility-reports
path: ${{ github.workspace }}/_accessibility-reports