From 18119422aeb23cef99ae0e6d41797c6bd0aceb6a Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 7 Sep 2022 02:57:28 -0700 Subject: [PATCH] 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: 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 --- .circleci/config.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 514315b4f61..863275c704b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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