Skip to content

Commit e0428cf

Browse files
committed
ci: enable automatic linux snapshot generation for cross-platform visual testing
1 parent 9fc517e commit e0428cf

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040

4141
- name: Run tests
4242
run: npm run test
43+
env:
44+
PLAYWRIGHT_ARGS: --update-snapshots
4345

4446
- name: Upload coverage to Codecov
4547
uses: codecov/codecov-action@v5
@@ -61,7 +63,7 @@ jobs:
6163
uses: actions/upload-artifact@v4
6264
with:
6365
name: generated-snapshots
64-
path: test/integration.spec.js-snapshots/
66+
path: test/integration.spec.ts-snapshots/
6567
retention-days: 7
6668

6769
deploy:

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@
4141
}
4242

4343
function integration() {
44+
const args = process.env.PLAYWRIGHT_ARGS || '';
4445
return gulp.src('.', {read: false})
45-
.pipe(shell(['npx playwright test']));
46+
.pipe(shell([`npx playwright test ${args}`]));
4647
}
4748

4849
function bump(level) {

0 commit comments

Comments
 (0)