-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infrastructure: Add CI to auto-generate examples/index.html when a PR…
… would change it (pull #1524) Resolves #1079: * chore: GitHub Action to check examples index.html * fix: sync examples/index.html * chore: run lint-staged for reference-table files Co-authored-by: Matt King <[email protected]>
- Loading branch information
Showing
3 changed files
with
61 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters