We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f8f15 commit 53543d6Copy full SHA for 53543d6
.github/workflows/build.yml
@@ -25,5 +25,10 @@ jobs:
25
- name: Install dependencies
26
run: npm install
27
28
+ - name: Build and check generated files
29
+ run: |
30
+ npm run build
31
+ script/check-generated-files
32
+
33
- name: Test corpus & parse examples
34
run: npm test
script/check-generated-files
@@ -0,0 +1,13 @@
1
+#!/usr/bin/env bash
2
3
+set -eu
4
5
+if ! git diff-index --quiet HEAD -- {tsx,typescript}/src/; then
6
+ cat 1>&2 <<EOF
7
+Generated files in the working tree are inconsistent with HEAD.
8
+Make sure to commit generated files in {tsx,typescript}/src/ when the grammar changes.
9
+EOF
10
+ exit 1
11
+fi
12
13
+exit 0
0 commit comments