@samitouri / QOS-React / commits / a6b8959169

[ci] Add yarn_test_build job to gh actions

ghstack-source-id: 5cff9778611acb747c05b9d353bd1af3b11e7d7a Pull Request resolved: https://github.com/facebook/react/pull/30072

Lauren Tan committed Jul 12, 2024 at 11:21 UTC a6b895916965cb6563a5238aa6eccfff984e40b4
2 files changed +62
.github/workflows/runtime_build.yml
+60
@@ -53,6 +53,66 @@ jobs:
53 path: |
54 build
55
56 + test_build:
57 + name: yarn test-build
58 + needs: build_and_lint
59 + strategy:
60 + matrix:
61 + test_params: [
62 + # Intentionally passing these as strings instead of creating a
63 + # separate parameter per CLI argument, since it's easier to
64 + # control/see which combinations we want to run.
65 + -r=stable --env=development,
66 + -r=stable --env=production,
67 + -r=experimental --env=development,
68 + -r=experimental --env=production,
69 +
70 + # Dev Tools
71 + --project=devtools -r=experimental,
72 +
73 + # TODO: Update test config to support www build tests
74 + # - "-r=www-classic --env=development --variant=false"
75 + # - "-r=www-classic --env=production --variant=false"
76 + # - "-r=www-classic --env=development --variant=true"
77 + # - "-r=www-classic --env=production --variant=true"
78 + # - "-r=www-modern --env=development --variant=false"
79 + # - "-r=www-modern --env=production --variant=false"
80 + # - "-r=www-modern --env=development --variant=true"
81 + # - "-r=www-modern --env=production --variant=true"
82 +
83 + # TODO: Update test config to support xplat build tests
84 + # - "-r=xplat --env=development --variant=false"
85 + # - "-r=xplat --env=development --variant=true"
86 + # - "-r=xplat --env=production --variant=false"
87 + # - "-r=xplat --env=production --variant=true"
88 +
89 + # TODO: Test more persistent configurations?
90 + ]
91 + continue-on-error: true
92 + runs-on: ubuntu-latest
93 + steps:
94 + - uses: actions/checkout@v4
95 + - uses: actions/setup-node@v4
96 + with:
97 + node-version: 18.20.1
98 + cache: yarn
99 + cache-dependency-path: yarn.lock
100 + - name: Restore cached node_modules
101 + uses: actions/cache@v4
102 + id: node_modules
103 + with:
104 + path: "**/node_modules"
105 + key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
106 + - run: yarn install --frozen-lockfile
107 + - name: Restore archived build
108 + uses: actions/download-artifact@v4
109 + with:
110 + path: build
111 + merge-multiple: true
112 + - name: Display structure of build
113 + run: ls -R build
114 + - run: yarn test --build ${{ matrix.test_params }} --ci=github
115 +
116 process_artifacts_combined:
117 name: Process artifacts combined
118 needs: build_and_lint
packages/react-devtools-shared/src/__tests__/storeStressTestConcurrent-test.js
+2
@@ -16,6 +16,8 @@ describe('StoreStressConcurrent', () => {
16 let store;
17 let print;
18
19 + jest.setTimeout(15000);
20 +
21 beforeEach(() => {
22 global.IS_REACT_ACT_ENVIRONMENT = true;
23