Skip to content

Commit 546d41b

Browse files
committed
wip - add ci matrix entries
1 parent a9bf858 commit 546d41b

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,16 +533,31 @@ jobs:
533533
- bundle_es5_min
534534
- bundle_es6
535535
- bundle_es6_min
536+
- bundle_replay_es6
537+
- bundle_replay_es6_min
536538
tracing_only:
537539
- true
538540
- false
541+
replay:
542+
- true
543+
- false
539544
exclude:
540545
# `tracing_only` only makes a difference for bundles - tests of the esm and cjs builds always include the
541546
# tracing tests
542547
- bundle: esm
543548
tracing_only: false
544549
- bundle: cjs
545550
tracing_only: false
551+
# `replay` only makes a difference for bundles - tests of the esm and cjs builds always include replay
552+
- bundle: esm
553+
replay: false
554+
- bundle: cjs
555+
replay: false
556+
# Replay is es6-only, so we can't and don't need to test agains ES5 bundles.
557+
- bundle: bundle_es5
558+
replay: true
559+
- bundle: bundle_es5_min
560+
replay: true
546561
steps:
547562
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
548563
uses: actions/checkout@v3
@@ -584,6 +599,7 @@ jobs:
584599
env:
585600
PW_BUNDLE: ${{ matrix.bundle }}
586601
PW_TRACING_ONLY: ${{ matrix.tracing_only }}
602+
PW_REPLAY: ${{ matrix.replay }}
587603
run: |
588604
cd packages/integration-tests
589605
yarn test:ci

packages/integration-tests/utils/generatePlugin.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import type { Compiler } from 'webpack';
77
const PACKAGES_DIR = '../../packages';
88

99
const tracingOnly = process.env.PW_TRACING_ONLY === 'true';
10+
const useReplay = process.env.PW_REPLAY === 'true';
11+
1012
const bundleKey = process.env.PW_BUNDLE;
1113

1214
// `esm` and `cjs` builds are modules that can be imported / aliased by webpack
@@ -23,6 +25,8 @@ const BUNDLE_PATHS: Record<string, Record<string, string>> = {
2325
bundle_es5_min: 'build/bundles/bundle.es5.min.js',
2426
bundle_es6: 'build/bundles/bundle.js',
2527
bundle_es6_min: 'build/bundles/bundle.min.js',
28+
bundle_replay_es6: 'build/bundles/bundle.replay.js',
29+
bundle_replay_es6_min: 'build/bundles/bundle.replay.min.js',
2630
},
2731
tracing: {
2832
cjs: 'build/npm/cjs/index.js',
@@ -31,7 +35,10 @@ const BUNDLE_PATHS: Record<string, Record<string, string>> = {
3135
bundle_es5_min: 'build/bundles/bundle.tracing.es5.min.js',
3236
bundle_es6: 'build/bundles/bundle.tracing.js',
3337
bundle_es6_min: 'build/bundles/bundle.tracing.min.js',
38+
bundle_replay_es6: 'build/bundles/bundle.tracing.replay.js',
39+
bundle_replay_es6_min: 'build/bundles/bundle.tracing.replay.min.js',
3440
},
41+
errorsAndReplay: {},
3542
integrations: {
3643
cjs: 'build/npm/cjs/index.js',
3744
esm: 'build/npm/esm/index.js',

0 commit comments

Comments
 (0)