Skip to content

Commit 47e0d9f

Browse files
committed
ci: fail if generated files do not match
1 parent ca52fbf commit 47e0d9f

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

.github/workflows/ci.yaml

+24-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
name: Build/test
22
on:
3-
push:
4-
branches:
5-
- "master"
6-
pull_request:
3+
push:
4+
branches:
5+
- 'master'
6+
pull_request:
77
jobs:
8-
test:
9-
runs-on: ${{ matrix.os }}
10-
strategy:
11-
fail-fast: true
12-
matrix:
13-
os: [macos-latest, ubuntu-latest]
14-
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-python@v4
17-
with:
18-
python-version: '3.11'
19-
- uses: actions/setup-node@v3
20-
with:
21-
node-version: '18'
22-
- run: npm install
23-
- run: npm test
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: true
12+
matrix:
13+
os: [macos-latest, ubuntu-latest]
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.11'
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: '18'
22+
- run: npm install
23+
- name: generate grammar
24+
run: npm run build
25+
- name: check for uncommited changes
26+
run: git diff --exit-code
27+
- run: npm test

0 commit comments

Comments
 (0)