Skip to content

Commit

Permalink
ci: add typecheck command
Browse files Browse the repository at this point in the history
  • Loading branch information
saifulshihab committed Nov 19, 2024
1 parent 3f196bd commit 8b205d2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- name: Install dependencies, run tests and build
run: |
yarn
yarn test:web # run client side tests
yarn test:server # run server side tests
yarn typecheck:web
yarn typecheck:server
yarn test:web
yarn test:server
yarn build # build both client & server app
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"start:web": "lerna exec --scope @card-32/web -- yarn dev",
"start:server": "lerna exec --scope @card-32/server -- yarn dev",
"lerna:bootstrap": "lerna bootstrap",
"typecheck:web": "lerna exec --scope @card-32/web -- yarn typecheck",
"test:web": "lerna exec --scope @card-32/web -- yarn test && lerna exec --scope @card-32/web -- yarn test:coverage",
"typecheck:server": "lerna exec --scope @card-32/server -- yarn typecheck",
"test:server": "lerna exec --scope @card-32/server -- yarn test && lerna exec --scope @card-32/server -- yarn test:coverage",
"build": "lerna exec --scope @card-32/web -- yarn build && lerna exec --scope @card-32/server -- yarn build"
},
Expand Down
1 change: 1 addition & 0 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "server.js",
"scripts": {
"dev": "nodemon",
"typecheck": "tsc --noEmit",
"test": "jest",
"test:coverage": "jest --coverage",
"build": "yarn install && tsc",
Expand Down
7 changes: 4 additions & 3 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"typecheck": "tsc --noEmit",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"test": "jest",
"test:coverage": "jest --coverage",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"build": "tsc && vite build"
},
"devDependencies": {
"@testing-library/dom": "^10.1.0",
Expand Down

0 comments on commit 8b205d2

Please sign in to comment.