Skip to content

Commit 88feb18

Browse files
pavelzemanclaude
andcommitted
ci: add TypeScript and unit test jobs, fix pre-existing CI failures
Builds on #161 (which added the base CI workflow with lint, Kotlin tests, and build). This commit adds the remaining two jobs: - TypeScript — npm run typescript (tsc --noEmit) - Unit Tests — npm test -- --coverage --passWithNoTests Fixes: - TypeScript: exclude example/ from tsconfig.json (references React Navigation deps only in example/node_modules) - Unit Tests: --passWithNoTests since repo has no JS/TS test files (all tests are Kotlin in test-runner/) Build job now depends on all four check jobs. Co-authored-by: Claude <claude@anthropic.com>
1 parent be32ac8 commit 88feb18

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,30 @@ jobs:
2626
- run: npm ci
2727
- run: npm run lint
2828

29+
typescript:
30+
name: TypeScript
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
34+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
35+
with:
36+
node-version: 22
37+
cache: npm
38+
- run: npm ci
39+
- run: npm run typescript
40+
41+
unit-tests:
42+
name: Unit Tests
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
46+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
47+
with:
48+
node-version: 22
49+
cache: npm
50+
- run: npm ci
51+
- run: npm test -- --coverage --passWithNoTests
52+
2953
kotlin-tests:
3054
name: Kotlin Tests
3155
runs-on: ubuntu-latest
@@ -43,7 +67,7 @@ jobs:
4367
build:
4468
name: Build Package
4569
runs-on: ubuntu-latest
46-
needs: [lint, kotlin-tests]
70+
needs: [lint, typescript, unit-tests, kotlin-tests]
4771
steps:
4872
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4973
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"babel.config.js",
3535
"metro.config.js",
3636
"jest.config.js",
37-
"example/detox/**/*",
38-
"example/node_modules"
37+
"example"
3938
]
4039
}

0 commit comments

Comments
 (0)