Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Typecheck
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
paths:
- "**.ts"
- "**.tsx"
- "**.js"
- "**.json"
- "**.lock"

jobs:
typecheck:
name: Typecheck
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Yarn install
uses: ./.github/actions/yarn-install

- name: Typecheck
run: yarn typecheck
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore",
"eas-build-pre-install": "echo $GOOGLE_SERVICES_ANDROID_BASE64 | base64 --decode > ./google-services.json",
"prepare": "husky install",
"start-be": "cd ../api-ping-4-gitlab && pnpm dev"
"start-be": "cd ../api-ping-4-gitlab && pnpm dev",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@expo-google-fonts/source-sans-pro": "^0.2.2",
Expand Down