Skip to content

Commit 837527c

Browse files
Copilotgoransle
andcommitted
Add TypeScript compilation check to workflow
Co-authored-by: goransle <7478772+goransle@users.noreply.github.com>
1 parent 031f0e3 commit 837527c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
- name: Install dependencies
2424
run: npm install
2525

26+
- name: Check TypeScript compilation is up to date
27+
run: |
28+
npm run tsc
29+
if [ -n "$(git status --porcelain)" ]; then
30+
echo "Error: Files have changed after running 'npm run tsc'. Please run 'npm run tsc' locally and commit the changes."
31+
git status
32+
git diff
33+
exit 1
34+
fi
35+
2636
- name: Setup config.json
2737
run: echo '{"token":"","port":"90","repo":"highcharts/highcharts"}' > config.json
2838

0 commit comments

Comments
 (0)