-
Notifications
You must be signed in to change notification settings - Fork 35
42 lines (32 loc) · 895 Bytes
/
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
name: Build and test website
on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Main repo
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build with Jekyll
run: bundle exec jekyll build
- name: Run HTMLProofer
run: bundle exec htmlproofer --enforce-https false --disable-external --allow-hash-href ./_site
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
cache: npm
- name: Install NPM dependencies
run: npm ci
- name: Run HTML5 Validator
run: npm run lint:html
- name: Run Cypress tests
run: |
bundle exec jekyll serve --detach
npm run cypress:run