Skip to content

Commit 99b3405

Browse files
authored
Check TypeScript during check-files workflow (#4510)
1 parent 675a92f commit 99b3405

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/check-files.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
echo "::notice title=Mixed TR and informative docs changes::Please submit changes to TR space separately from changes to informative docs."
4343
echo "CHECK_FAILED=1" >> "$GITHUB_ENV"
4444
fi
45+
- name: Check TypeScript
46+
run: |
47+
npm ci
48+
if test $(npx tsc | wc -l) -gt 0; then
49+
echo '::notice title=Branch contains TypeScript errors::Run `npm run check` locally for details.'
50+
echo "CHECK_FAILED=1" >> "$GITHUB_ENV"
51+
fi
4552
- name: Reflect status
4653
run: |
4754
test ! $CHECK_FAILED

0 commit comments

Comments
 (0)