-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 816 Bytes
/
Copy pathci.yml
File metadata and controls
26 lines (24 loc) · 816 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
check:
name: Build, test and verify generated files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Build and test
run: npm run check
- name: Regenerate sample reports
run: npm run examples && npm run site
- name: Fail if dist/ or docs/examples/ were not regenerated before committing
run: |
if ! git diff --exit-code --stat -- dist docs/examples sitemap.xml '*.html'; then
echo "::error::dist/, docs/examples/, sitemap.xml or the tool pages are out of date. Run 'npm run build && npm run examples && npm run site' and commit the result."
exit 1
fi