Skip to content

Commit

Permalink
enhancement: adds type checking script and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeanribeiro committed Feb 9, 2023
1 parent fb3df77 commit 4551e88
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.ts.yml
@@ -0,0 +1,24 @@
name: Type check

on:
pull_request:
push:
branches:
- 'develop'

jobs:
check-types:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.4.2

- name: Install Dependencies
run: yarn --ignore-scripts

- name: Check types
run: yarn check types
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -32,7 +32,10 @@
"pre-commit": "yarn format-check && yarn lint",
"prepare": "husky install",
"test": "yarn test:shared",
"test:shared": "cd packages/shared && yarn test"
"test:shared": "cd packages/shared && yarn test",
"check-types": "yarn check-types:shared && yarn check-types:desktop",
"check-types:shared": "cd packages/shared && tsc --pretty --noEmit",
"check-types:desktop": "cd packages/desktop && tsc --pretty --noEmit"
},
"resolutions": {
"ansi-regex": "5.0.1",
Expand Down

0 comments on commit 4551e88

Please sign in to comment.