Skip to content

Commit 3084560

Browse files
committed
Simpler way to check for typescript errors
1 parent 842efa2 commit 3084560

File tree

2 files changed

+6
-25
lines changed

2 files changed

+6
-25
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Tests
22

33
on:
4+
push:
45
pull_request:
56

67
jobs:
@@ -14,32 +15,11 @@ jobs:
1415
node-version: 20
1516
- name: Install Dependencies
1617
run: npm ci
18+
- name: Check TypeScript Errors
19+
run: npm run tscheck
1720
- name: Install Playwright Browsers
1821
run: npx playwright install --with-deps
1922
- name: Build Project
2023
run: npm run build
2124
- name: Run tests
22-
run: npm test
23-
- name: Get diff lines
24-
id: diff
25-
uses: Equip-Collaboration/[email protected]
26-
with:
27-
include: '["\\.ts$"]'
28-
- name: Detecting files changed
29-
id: files
30-
uses: umani/[email protected]
31-
with:
32-
repo-token: ${{ github.token }}
33-
pattern: '^.*\.ts$'
34-
- name: Check TypeScript Errors
35-
uses: wallstead/[email protected]
36-
with:
37-
repo-token: ${{ secrets.GITHUB_TOKEN }}
38-
use-check: true
39-
check-fail-mode: added
40-
files-changed: ${{steps.files.outputs.files_updated}}
41-
files-added: ${{steps.files.outputs.files_created}}
42-
files-deleted: ${{steps.files.outputs.files_deleted}}
43-
line-numbers: ${{steps.diff.outputs.lineNumbers}}
44-
output-behaviour: both
45-
comment-behaviour: new
25+
run: npm test

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"build": "vite build",
3232
"test": "vitest",
3333
"gen": "node src/Blockly/gen.js",
34-
"dev": "vite"
34+
"dev": "vite",
35+
"tscheck": "tsc --noEmit"
3536
},
3637
"eslintConfig": {
3738
"extends": [

0 commit comments

Comments
 (0)