Skip to content

Commit a13b5cd

Browse files
authored
Verify that metamodel is always in sync (#1719)
1 parent 513ff6a commit a13b5cd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/metamodel-sync.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check metamodel sync
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'compiler/**'
7+
- 'typescript-generator/**'
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Copy compiler's metamodel to typescript-generator
18+
run: |
19+
cp compiler/src/model/metamodel.ts typescript-generator/src/metamodel.ts
20+
21+
- name: Check file sync
22+
run: |
23+
if [ -n "$(git status --porcelain)" ]; then echo Error: compiler's metamodel and ts generator metamodel are not in sync; git diff; git status; exit 1; fi

0 commit comments

Comments
 (0)