Skip to content

Commit

Permalink
feat: add typecheck to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
huyenltnguyen committed Apr 19, 2024
1 parent 1e3252f commit b80f48e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,25 @@ jobs:

- name: Run tests
run: pnpm test

typecheck:
name: Typecheck
needs: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Install Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: 20

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: true

- name: Run typecheck
run: pnpm typecheck
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"clean": "rm -rf dist/*",
"gen-component": "tsx ./utils/gen-component-script",
"test": "jest",
"prepare": "husky"
"prepare": "husky",
"typecheck": "tsc"
},
"dependencies": {
"@fortawesome/free-solid-svg-icons": "6.5.2",
Expand Down

0 comments on commit b80f48e

Please sign in to comment.