Skip to content

Commit

Permalink
👷 add typeCheck CI (#13)
Browse files Browse the repository at this point in the history
* 👷 add typeCheck CI

* 👷 manually install pnpm
  • Loading branch information
wzhudev authored Apr 18, 2023
1 parent e38a4ec commit 493a79f
Show file tree
Hide file tree
Showing 5 changed files with 385 additions and 359 deletions.
15 changes: 10 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,27 @@ orbs:
codecov: codecov/[email protected]

jobs:
install-test:
test:
docker:
# replace with your preferred image
- image: cimg/base:stable
steps:
- node/install:
install-npm: false
install-yarn: true
install-yarn: false
- checkout
- run: yarn
- run: yarn test
- run:
name: Install pnpm package manager
command: |
curl -L https://pnpm.js.org/pnpm.js | node - add --global pnpm@8
- run: pnpm i
- run: pnpm run test
- run: pnpm run typeCheck
- store_artifacts:
path: coverage
- codecov/upload

workflows:
test:
jobs:
- install-test
- test
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"test": "vitest --coverage",
"lint": "eslint --fix 'src/**/*.ts'",
"lint:prettier": "prettier --write '{src,test}/**/*.{ts,tsx}'",
"build": "squirrel"
"build": "squirrel",
"typeCheck": "tsc -p tsconfig.json --noEmit"
},
"exports": {},
"squirrel": {
Expand All @@ -21,6 +22,7 @@
"devDependencies": {
"@testing-library/dom": "^8.5.0",
"@testing-library/react": "^12.1.2",
"@types/node": "^18.15.11",
"@types/react": ">=16.8.0",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.30.0",
Expand Down
Loading

0 comments on commit 493a79f

Please sign in to comment.