@@ -150,7 +150,7 @@ commands:
150
150
default : false
151
151
trigger_pattern :
152
152
type : string
153
- default : " packages/*|.circleci/*"
153
+ default : " packages/*|.circleci/*|scripts/e2e-test.sh "
154
154
test_path :
155
155
type : string
156
156
test_command :
@@ -168,6 +168,9 @@ commands:
168
168
- run : ./scripts/assert-changed-files.sh "<< parameters.trigger_pattern >>|<< parameters.test_path >>/*"
169
169
170
170
- << : *attach_to_bootstrap
171
+ - run :
172
+ name : Install gatsby-dev
173
+ command : yarn global add gatsby-dev-cli
171
174
- run :
172
175
name : Run tests (using defaults)
173
176
command : ./scripts/e2e-test.sh "<< parameters.test_path >>" "<< parameters.test_command >>"
@@ -179,7 +182,7 @@ jobs:
179
182
executor : node
180
183
steps :
181
184
- checkout
182
- - run : ./scripts/assert-changed-files.sh "packages/*|(e2e|integration)-tests/*|.circleci/*|yarn.lock"
185
+ - run : ./scripts/assert-changed-files.sh "packages/*|(e2e|integration)-tests/*|.circleci/*|scripts/e2e-test.sh| yarn.lock"
183
186
- << : *restore_cache
184
187
- << : *install_node_modules
185
188
- << : *check_lockfile
@@ -264,7 +267,7 @@ jobs:
264
267
steps :
265
268
- e2e-test :
266
269
test_path : integration-tests/gatsby-cli
267
- trigger_pattern : packages/gatsby-cli/*|packages/gatsby/*|integration-tests/gatsby-cli/*
270
+ trigger_pattern : packages/gatsby-cli/*|packages/gatsby/*|integration-tests/gatsby-cli/*|scripts/e2e-test.sh
268
271
269
272
integration_tests_structured_logging :
270
273
executor : node
@@ -377,8 +380,8 @@ jobs:
377
380
CYPRESS_RECORD_KEY : 3fb49000-4143-4bd8-9ab4-219389060910
378
381
steps :
379
382
- e2e-test :
380
- test_path : e2e-tests/themes/development-runtime
381
- test_command : yarn test
383
+ test_path : e2e-tests/themes
384
+ test_command : cd development-runtime; yarn test
382
385
383
386
themes_e2e_tests_production_runtime :
384
387
<< : *e2e-executor
@@ -387,8 +390,8 @@ jobs:
387
390
CYPRESS_RECORD_KEY : e4e7b3b8-e1e7-4a74-a0c9-9ac76585236b
388
391
steps :
389
392
- e2e-test :
390
- test_path : e2e-tests/themes/production-runtime
391
- test_command : yarn test
393
+ test_path : e2e-tests/themes
394
+ test_command : cd production-runtime; yarn test
392
395
393
396
mdx_e2e_tests :
394
397
<< : *e2e-executor
@@ -490,7 +493,7 @@ jobs:
490
493
steps :
491
494
- checkout
492
495
- run :
493
- command : ./scripts/assert-changed-files.sh "packages/*|(e2e|integration)-tests/*|.circleci/*|yarn.lock"
496
+ command : ./scripts/assert-changed-files.sh "packages/*|(e2e|integration)-tests/*|.circleci/*|scripts/e2e-test.sh| yarn.lock"
494
497
shell : bash.exe
495
498
# Restoring cache takes as long as installing node modules, so skipping
496
499
# - restore_cache:
0 commit comments