Skip to content

Commit 16b9c79

Browse files
authored
ci: Separate browser integration and build tests (#4230)
The jobs can run independently, and when we run the integration tests with a test matrix with multiple target browsers, we don't need to re-run the build tests for N browsers (the build test is browser-independent).
1 parent bfd74df commit 16b9c79

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,4 +293,29 @@ jobs:
293293
run: |
294294
cd packages/browser
295295
yarn test:integration
296+
297+
job_browser_build_tests:
298+
name: Browser Build Tests
299+
needs: job_build
300+
runs-on: ubuntu-latest
301+
timeout-minutes: 5
302+
continue-on-error: true
303+
steps:
304+
- name: Check out current commit (${{ github.sha }})
305+
uses: actions/checkout@v2
306+
- name: Set up Node
307+
uses: actions/setup-node@v1
308+
- name: Check dependency cache
309+
uses: actions/cache@v2
310+
with:
311+
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
312+
key: ${{ needs.job_build.outputs.dependency_cache_key }}
313+
- name: Check build cache
314+
uses: actions/cache@v2
315+
with:
316+
path: ${{ env.CACHED_BUILD_PATHS }}
317+
key: ${{ env.BUILD_CACHE_KEY }}
318+
- name: Run build tests
319+
run: |
320+
cd packages/browser
296321
yarn test:package

0 commit comments

Comments
 (0)