Summary:
This PR runs the Jest test for the Codegen package in CI.

## Changelog

[General] [Added] - Run Codegen Tests in CI

Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
Riccardo Cipolleschi 2022-09-07 02:57:28 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 37d0a25cb2
Коммит 18119422ae
1 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -406,6 +406,27 @@ jobs:
- store_test_results:
path: ./reports/junit
# -----------------------
# JOBS: Codegen Tests
# -----------------------
test_codegen:
parameters:
executor:
type: executor
default: nodelts
executor: << parameters.executor >>
steps:
- checkout
- setup_artifacts
- run:
name: Install Yarn in codegen
command: yarn install
working_directory: packages/react-native-codegen
- run:
name: Run Tests
command: yarn jest
working_directory: packages/react-native-codegen
# -------------------------
# JOBS: iOS Unit Tests
# -------------------------
@ -1328,6 +1349,7 @@ workflows:
unless: << pipeline.parameters.run_package_release_workflow_only >>
jobs:
- prepare_hermes_workspace
- test_codegen
- build_hermesc_linux:
requires:
- prepare_hermes_workspace