Skip to content

Commit

Permalink
Merge pull request #68 from OP-Engineering/ci
Browse files Browse the repository at this point in the history
Add typecheck to CI workflow
  • Loading branch information
ospfranco authored Mar 9, 2024
2 parents 7c827d5 + 436844f commit d290e4a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@ name: CI
on: pull_request

jobs:
# lint:
# runs-on: self-hosted
# steps:
# - name: Checkout
# uses: actions/checkout@v3

# - name: Setup
# uses: ./.github/actions/setup
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

# - name: Lint files
# run: yarn lint
- name: Setup
uses: ./.github/actions/setup

# - name: Typecheck files
# run: yarn typecheck
- name: Typecheck files
run: yarn typecheck

# test:
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -47,7 +44,7 @@ jobs:
TURBO_CACHE_DIR: .turbo/android
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down
2 changes: 1 addition & 1 deletion lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ pre-commit:
cpp-linter:
run: clang-format -i cpp/*.cpp cpp/*.h && git add .
tsc:
run: npm run typescript
run: npm run typecheck
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"!**/__mocks__"
],
"scripts": {
"typescript": "tsc --noEmit",
"typecheck": "tsc --noEmit",
"prepare": "bob build",
"example": "yarn --cwd example",
"pods": "cd example && yarn pods",
Expand Down

0 comments on commit d290e4a

Please sign in to comment.