-
Notifications
You must be signed in to change notification settings - Fork 95
35 lines (28 loc) · 917 Bytes
/
validation.yml
File metadata and controls
35 lines (28 loc) · 917 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
name: validation
on: [push, pull_request]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Build
run: |
bundle install
bundle exec jekyll build --drafts
- name: Set up python
run: |
sudo apt install python3-setuptools python3-wheel -y
python3 --version && python3 -m pip --version
- name: html5validator
run: |
python3 -m pip install html5validator --user --upgrade
~/.local/bin/html5validator --root _site/
- name: yamlvalidate
run: |
python3 -m pip install git+https://github.com/DanielOaks/yamltypes.git@ircv3-fixes#egg=yamltypes --user --upgrade
~/.local/bin/yamlvalidate $(find _data | grep \.yml | xargs) --path _data/validation