Skip to content

Commit 568f092

Browse files
committed
fix: don't generate test workflow if jest isn't picked
1 parent b95f05a commit 568f092

File tree

1 file changed

+2
-0
lines changed
  • packages/create-react-native-library/templates/common/$.github/workflows

1 file changed

+2
-0
lines changed

packages/create-react-native-library/templates/common/$.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Typecheck files
3434
run: yarn typecheck
3535

36+
<% if (tools.includes('jest')) { -%>
3637
test:
3738
runs-on: ubuntu-latest
3839

@@ -45,6 +46,7 @@ jobs:
4546

4647
- name: Run unit tests
4748
run: yarn test --maxWorkers=2 --coverage
49+
<% } -%>
4850

4951
build-library:
5052
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)