Skip to content

Commit a0f06c0

Browse files
committed
wip - add ci matrix entries
1 parent 20a970c commit a0f06c0

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
@@ -532,16 +532,31 @@ jobs:
532532
- bundle_es5_min
533533
- bundle_es6
534534
- bundle_es6_min
535+
- bundle_replay_es6
536+
- bundle_replay_es6_min
535537
tracing_only:
536538
- true
537539
- false
540+
replay:
541+
- true
542+
- false
538543
exclude:
539544
# `tracing_only` only makes a difference for bundles - tests of the esm and cjs builds always include the
540545
# tracing tests
541546
- bundle: esm
542547
tracing_only: false
543548
- bundle: cjs
544549
tracing_only: false
550+
# `replay` only makes a difference for bundles - tests of the esm and cjs builds always include replay
551+
- bundle: esm
552+
replay: false
553+
- bundle: cjs
554+
replay: false
555+
# Replay is es6-only, so we can't and don't need to test agains ES5 bundles.
556+
- bundle: bundle_es5
557+
replay: true
558+
- bundle: bundle_es5_min
559+
replay: true
545560
steps:
546561
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
547562
uses: actions/checkout@v3
@@ -583,6 +598,7 @@ jobs:
583598
env:
584599
PW_BUNDLE: ${{ matrix.bundle }}
585600
PW_TRACING_ONLY: ${{ matrix.tracing_only }}
601+
PW_REPLAY: ${{ matrix.replay }}
586602
run: |
587603
cd packages/integration-tests
588604
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)