Skip to content

Commit 1811942

Browse files
Riccardo Cipolleschifacebook-github-bot
authored andcommitted
Run Codegen Tests in CI (#34596)
Summary: This PR runs the Jest test for the Codegen package in CI. ## Changelog [General] [Added] - Run Codegen Tests in CI Pull Request resolved: #34596 Test Plan: CircleCI should show a new job for the tests. The job should be green. Reviewed By: NickGerleman Differential Revision: D39275645 Pulled By: cipolleschi fbshipit-source-id: 29133c933f134802029406ff255b62d27681c8ff
1 parent 37d0a25 commit 1811942

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.circleci/config.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,27 @@ jobs:
406406
- store_test_results:
407407
path: ./reports/junit
408408

409+
# -----------------------
410+
# JOBS: Codegen Tests
411+
# -----------------------
412+
test_codegen:
413+
parameters:
414+
executor:
415+
type: executor
416+
default: nodelts
417+
executor: << parameters.executor >>
418+
steps:
419+
- checkout
420+
- setup_artifacts
421+
- run:
422+
name: Install Yarn in codegen
423+
command: yarn install
424+
working_directory: packages/react-native-codegen
425+
- run:
426+
name: Run Tests
427+
command: yarn jest
428+
working_directory: packages/react-native-codegen
429+
409430
# -------------------------
410431
# JOBS: iOS Unit Tests
411432
# -------------------------
@@ -1328,6 +1349,7 @@ workflows:
13281349
unless: << pipeline.parameters.run_package_release_workflow_only >>
13291350
jobs:
13301351
- prepare_hermes_workspace
1352+
- test_codegen
13311353
- build_hermesc_linux:
13321354
requires:
13331355
- prepare_hermes_workspace

0 commit comments

Comments
 (0)