Skip to content

Commit a397ac9

Browse files
committed
chore: test changes
Signed-off-by: Jakub Freisler <jakub@frsource.org>
1 parent 7aef7c2 commit a397ac9

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/ci.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,21 @@ jobs:
4646
with:
4747
node-version: "18.x"
4848
cache: 'pnpm'
49-
- run: pnpm install && cd ./examples/webpack && pnpm cypress install
49+
- run: pnpm install && cd ./examples/webpack && pnpm cypress install && cd ../next && pnpm cypress install
50+
- run: cd ./examples/webpack && pnpm cypress install
51+
- run: cd ./examples/next && pnpm cypress install
5052
- run: pnpm --filter cypress-plugin-visual-regression-diff -r build
5153
- name: Test e2e
5254
run: pnpm test:e2e:ci
5355
- name: Test component-testing
5456
run: pnpm test:ct:ci
57+
- uses: actions/upload-artifact@v3
58+
with:
59+
name: test
60+
path: |
61+
examples/next/**/*.png
62+
examples/next/**/*.jpg
63+
examples/next/**/*.jpeg
5564
5665
test-integration-coverage:
5766
name: test-integration-coverage

examples/next/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"dev": "next dev",
55
"build": "next build",
66
"start": "next start",
7-
"cypress": "cypress open --env \"pluginVisualRegressionImagesPath={spec_path}/__image_snapshots_local__\"",
8-
"cypress:ci": "cypress run --env \"pluginVisualRegressionImagesPath={spec_path}/__image_snapshots_local__\"",
7+
"cypress": "cypress open --env \"pluginVisualRegressionUpdateImages=true,pluginVisualRegressionImagesPath={spec_path}/__image_snapshots_local__\"",
8+
"cypress:ci": "cypress run --env \"pluginVisualRegressionUpdateImages=true\"",
99
"test:e2e": "start-server-and-test dev http://localhost:3000 \"pnpm cypress --e2e\"",
1010
"test:e2e:ci": "start-server-and-test dev http://localhost:3000 \"pnpm cypress:ci --e2e\"",
1111
"test:ct": "start-server-and-test dev http://localhost:3000 \"pnpm cypress --component\"",

0 commit comments

Comments
 (0)