Skip to content

Commit a4bd212

Browse files
authored
chore: add type check step to CI frontend tests (#1207)
1 parent 6573ada commit a4bd212

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/test.frontend.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install Node.js
3636
uses: actions/setup-node@v6
3737
with:
38-
node-version-file: 'ui/.nvmrc'
38+
node-version-file: "ui/.nvmrc"
3939

4040
- name: Install Dependencies
4141
run: yarn install
@@ -46,6 +46,9 @@ jobs:
4646
- name: Run Linter
4747
run: yarn lint
4848

49+
- name: Run Type Check
50+
run: yarn type-check
51+
4952
test:
5053
runs-on: ubuntu-latest
5154
defaults:
@@ -58,7 +61,7 @@ jobs:
5861
- name: Install Node.js
5962
uses: actions/setup-node@v6
6063
with:
61-
node-version-file: 'ui/.nvmrc'
64+
node-version-file: "ui/.nvmrc"
6265

6366
- name: Install Dependencies
6467
run: yarn install

ui/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"preview": "vite preview",
5151
"test": "jest",
5252
"format": "prettier \"src/**/*.{ts,tsx,css}\"",
53-
"lint": "eslint \"src/**/*.{ts,tsx}\""
53+
"lint": "eslint \"src/**/*.{ts,tsx}\"",
54+
"type-check": "tsc --noEmit"
5455
},
5556
"browserslist": {
5657
"production": [

0 commit comments

Comments
 (0)