Skip to content

Commit

Permalink
github typecheck + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
henninghall committed May 24, 2024
1 parent a0bdb60 commit e42b15a
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint

on:
workflow_call:
workflow_dispatch:

jobs:
lint-js:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Node
uses: actions/setup-node@v4

- name: Install npm dependencies
run: yarn install --frozen-lockfile

- name: Lint
run: yarn lint
8 changes: 8 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ jobs:
test-android-unit:
name: Test
uses: ./.github/workflows/test-android-unit.yml

lint:
name: Check
uses: ./.github/workflows/lint.yml

typecheck:
name: Check
uses: ./.github/workflows/typecheck.yml
24 changes: 24 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Types

on:
workflow_call:
workflow_dispatch:

jobs:
lint-js:
name: Types
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Node
uses: actions/setup-node@v4

- name: Install npm dependencies
run: yarn install --frozen-lockfile

- name: Lint
run: yarn typecheck
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"emulator": "bash ./scripts/start-android-emulator.sh",
"maestro:ios": "maestro test --include-tags=ios .maestro/",
"maestro:android": "maestro test --include-tags=android .maestro/",
"typecheck": "yarn tsc"
"typecheck": "yarn tsc",
"lint": "yarn eslint ./src"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit e42b15a

Please sign in to comment.