-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.14 KB
/
build-test.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
name: Testing the Jekyll build
on:
push:
branches: main
pull_request:
jobs:
jekyll-build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
# Use GitHub Actions' cache to shorten build times and decrease load on servers
- name: Setup cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Setup node
uses: actions/setup-node@v3
with:
cache: 'npm'
- name: Install dependancies
run: npm ci
# Bug fix for the GitHub action not respeceting the `source` parameter in _config.yml
# https://github.com/helaili/jekyll-action/issues/140
- name: Copy _config.json to the src dir
run: cp _config.yml src/_config.yml
# Standard usage
- name: Build Jekyll site
uses: helaili/jekyll-action@master
with:
build_only: true
build_dir: ./_site
jekyll_src: ./src
- name: HTMLProofer
uses: chabad360/htmlproofer@master
with:
directory: "./_site"