-
Notifications
You must be signed in to change notification settings - Fork 31
40 lines (34 loc) · 969 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
# This workflow validates the document for markup and examples.
name: CI
on:
push:
branches: [ '**' ]
pull_request:
branches: [ main ]
jobs:
tests:
name: Build and Validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install dependencies
run: bundle install
- name: "Verify common files are consistent"
run: |
git remote add -f b https://github.com/w3c/json-ld-wg.git
git remote update
git diff --exit-code remotes/b/main -- common
- name: Verify examples are consistent
run: bundle exec rake test
- name: Checks HTML5
run: bundle exec rake check_html
# See https://github.com/w3c/spec-prod/blob/main/docs/examples.md
#- name: ReSpec Checker
# uses: w3c/spec-prod@v1
# with:
# VALIDATE_LINKS: true
# VALIDATE_MARKUP: true