Skip to content

Commit

Permalink
chore: GitHub Action to check examples index.html
Browse files Browse the repository at this point in the history
Closes w3c#1366
  • Loading branch information
nschonni committed Oct 12, 2020
1 parent 78bb9a0 commit b49e918
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check examples/index.html

on:
push:
branches-ignore:
- "dependabot/**"
paths:
- "package*.json"
- ".github/workflows/examples.yml"
- "examples/**"
- "scripts/reference-tables.*"
pull_request:
paths:
- "package*.json"
- ".github/workflows/examples.yml"
- "examples/**"
- "scripts/reference-tables.*"

jobs:
examples:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: npm ci

- name: Generate examples/index.html
run: npm run reference-tables

- name: Ensure no git changes
run: git diff --exit-code
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"lint:js": "npm run lint:es",
"lint:html": "npm run vnu-jar",
"lint:spelling": "cspell \"examples/**/*.html\" \"aria-practices.html\"",
"reference-tables": "node scripts/reference-tables.js",
"regression": "ava --timeout=1m",
"regression-report": "node test/util/report",
"test": "npm run lint && npm run regression",
Expand Down

0 comments on commit b49e918

Please sign in to comment.