|
40 | 40 | - name: Ensure clean build directory
|
41 | 41 | run: rm -rf build
|
42 | 42 | - run: yarn install --frozen-lockfile
|
| 43 | + if: steps.node_modules.outputs.cache-hit != 'true' |
43 | 44 | - run: yarn --cwd scripts/release install --frozen-lockfile
|
| 45 | + if: steps.node_modules.outputs.cache-hit != 'true' |
44 | 46 | - name: Download react-devtools artifacts for base revision
|
45 | 47 | run: |
|
46 | 48 | git fetch origin main
|
|
75 | 77 | - name: Ensure clean build directory
|
76 | 78 | run: rm -rf build
|
77 | 79 | - run: yarn install --frozen-lockfile
|
| 80 | + if: steps.node_modules.outputs.cache-hit != 'true' |
78 | 81 | - name: Restore archived build
|
79 | 82 | uses: actions/download-artifact@v4
|
80 | 83 | with:
|
@@ -134,6 +137,7 @@ jobs:
|
134 | 137 | **/node_modules
|
135 | 138 | key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
136 | 139 | - run: yarn install --frozen-lockfile
|
| 140 | + if: steps.node_modules.outputs.cache-hit != 'true' |
137 | 141 | - name: Restore all archived build artifacts
|
138 | 142 | uses: actions/download-artifact@v4
|
139 | 143 | - name: Display structure of build
|
@@ -169,14 +173,24 @@ jobs:
|
169 | 173 | **/node_modules
|
170 | 174 | key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
171 | 175 | - run: yarn install --frozen-lockfile
|
| 176 | + if: steps.node_modules.outputs.cache-hit != 'true' |
172 | 177 | - name: Restore all archived build artifacts
|
173 | 178 | uses: actions/download-artifact@v4
|
174 | 179 | - name: Display structure of build
|
175 | 180 | run: ls -R build
|
176 |
| - - name: Playwright install deps |
177 |
| - run: | |
178 |
| - npx playwright install |
179 |
| - sudo npx playwright install-deps |
| 181 | + - name: Check Playwright version |
| 182 | + id: playwright_version |
| 183 | + run: echo "playwright_version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//' | head -1)" >> "$GITHUB_OUTPUT" |
| 184 | + - name: Cache Playwright Browsers for version ${{ steps.playwright_version.outputs.playwright_version }} |
| 185 | + id: cache_playwright_browsers |
| 186 | + uses: actions/cache@v4 |
| 187 | + with: |
| 188 | + path: ~/.cache/ms-playwright |
| 189 | + key: playwright-browsers-v6-${{ runner.arch }}-${{ runner.os }}-${{ steps.playwright_version.outputs.playwright_version }} |
| 190 | + - run: npx playwright install --with-deps |
| 191 | + if: steps.cache_playwright_browsers.outputs.cache-hit != 'true' |
| 192 | + - run: npx playwright install-deps |
| 193 | + if: steps.cache_playwright_browsers.outputs.cache-hit == 'true' |
180 | 194 | - run: ./scripts/ci/download_devtools_regression_build.js ${{ matrix.version }}
|
181 | 195 | - run: ls -R build-regression
|
182 | 196 | - run: ./scripts/ci/run_devtools_e2e_tests.js ${{ matrix.version }}
|
|
0 commit comments