@samitouri / QOS-React-2 / commits / 82e426e229

[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.

Sathya Gunasekaran committed Jul 25, 2023 at 13:34 UTC 82e426e2298724c8c63d495fb9ec0b6c39ac1fdf
1 file changed +27
compiler/.github/workflows/react.yml new
+27
@@ -0,0 +1,27 @@
1 +name: react
2 +
3 +on:
4 + push:
5 + branches: [main]
6 + pull_request:
7 +
8 +jobs:
9 + test:
10 + runs-on: ubuntu-latest
11 + steps:
12 + - uses: actions/checkout@v3
13 + - uses: actions/setup-node@v3
14 + with:
15 + node-version: 18.x
16 + cache: "yarn"
17 + cache-dependency-path: forget/yarn.lock
18 + - run: yarn install --immutable --immutable-cache
19 + working-directory: forget
20 + - run: yarn workspace babel-plugin-react-forget run build
21 + working-directory: forget
22 + - run: yarn install --ci
23 + working-directory: react
24 + - run: yarn build --ci
25 + working-directory: react
26 + - run: yarn test --ci
27 + working-directory: react