From 82e426e2298724c8c63d495fb9ec0b6c39ac1fdf Mon Sep 17 00:00:00 2001 From: Sathya Gunasekaran Date: Tue, 25 Jul 2023 13:34:50 +0100 Subject: [PATCH] [CI] Run react test suite on every PR Add a new workflow to run test suite to run on every PR. Updates the build step to just build the UMD variant of react & react-dom for the tests. --- compiler/.github/workflows/react.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 compiler/.github/workflows/react.yml diff --git a/compiler/.github/workflows/react.yml b/compiler/.github/workflows/react.yml new file mode 100644 index 0000000000..e8ce02b4b8 --- /dev/null +++ b/compiler/.github/workflows/react.yml @@ -0,0 +1,27 @@ +name: react + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: "yarn" + cache-dependency-path: forget/yarn.lock + - run: yarn install --immutable --immutable-cache + working-directory: forget + - run: yarn workspace babel-plugin-react-forget run build + working-directory: forget + - run: yarn install --ci + working-directory: react + - run: yarn build --ci + working-directory: react + - run: yarn test --ci + working-directory: react