Skip to content

Commit e0e06b1

Browse files
authored
Add a presubmit check to ensure that the combined schemas are updated (#235)
1 parent 664821a commit e0e06b1

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ jobs:
3333

3434
- name: Install dependencies
3535
run: npm ci
36+
37+
- name: Check combined schema
38+
run: |
39+
npm run build:openapi
40+
if [ -n "$(git status --porcelain)" ]; then
41+
echo "Error: Build produced uncommitted changes in openapi.yaml. Please rerun npm run build:openapi and commit the changes to the combined schema"
42+
exit 1
43+
fi
3644
3745
- name: Lint
38-
run: npm run lint
46+
run: npm run lint:openapi

0 commit comments

Comments
 (0)