Skip to content

Commit 4fdf354

Browse files
committed
Add checking TS errors to CI
1 parent 498a2df commit 4fdf354

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,30 @@ jobs:
1717
run: npm ci
1818
- name: Install Playwright Browsers
1919
run: npx playwright install --with-deps
20-
2120
- name: Build Project
2221
run: npm run build
2322
- name: Run tests
2423
run: npm test
24+
- name: Get diff lines
25+
id: diff
26+
uses: Equip-Collaboration/[email protected]
27+
with:
28+
include: '["\\.ts$"]'
29+
- name: Detecting files changed
30+
id: files
31+
uses: umani/[email protected]
32+
with:
33+
repo-token: ${{ github.token }}
34+
pattern: '^.*\.ts$'
35+
- name: Check TypeScript Errors
36+
uses: wallstead/[email protected]
37+
with:
38+
repo-token: ${{ secrets.GITHUB_TOKEN }}
39+
use-check: true
40+
check-fail-mode: added
41+
files-changed: ${{steps.files.outputs.files_updated}}
42+
files-added: ${{steps.files.outputs.files_created}}
43+
files-deleted: ${{steps.files.outputs.files_deleted}}
44+
line-numbers: ${{steps.diff.outputs.lineNumbers}}
45+
output-behaviour: both
46+
comment-behaviour: new

0 commit comments

Comments
 (0)