-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (30 loc) · 819 Bytes
/
ci.yml
File metadata and controls
39 lines (30 loc) · 819 Bytes
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
name: CI
on:
pull_request:
branches: [ main, master ]
push:
branches: [ main, master ]
jobs:
validate-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: Validate YAML files
run: ruby scripts/validate_yaml.rb
- name: Validate posts
run: bash scripts/validate_posts.sh
- name: Build Jekyll site
run: bundle exec jekyll build
env:
JEKYLL_ENV: production
- name: Test with html-proofer
run: |
bundle exec htmlproofer ./_site \
--disable-external \
--ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/" \
--allow-hash-href