Skip to content

Commit

Permalink
refactor: use turborepo for scheduling webform snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Jun 7, 2024
1 parent bddce96 commit 02c3336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"drush": "SB_ENVIRONMENT=1 SIMPLETEST_DB=sqlite://localhost/sites/default/files/.sqlite DRUSH_OPTIONS_URI=http://127.0.0.1:8888 vendor/bin/drush",
"silverback": "SB_ENVIRONMENT=1 SIMPLETEST_DB=sqlite://localhost/sites/default/files/.sqlite SB_ADMIN_USER=admin SB_ADMIN_PASS=admin vendor/bin/silverback",
"drupal-install": "SB_SETUP=1 pnpm silverback setup --profile minimal && pnpm content:import && pnpm drush php-eval 'node_access_rebuild();' && rm -rf install-cache.zip && pnpm fix-premissions && pnpm ensure-working-db",
"export-webforms": "pnpm run --filter '@custom-tests/e2e' prep && pnpm run --filter '@custom-tests/e2e' webform-snapshots",
"export-webforms": "pnpm turbo --filter '@custom-tests/e2e' webform-snapshots",
"start": "cd web; SB_ENVIRONMENT=1 SIMPLETEST_DB=sqlite://localhost/sites/default/files/.sqlite DRUSH_OPTIONS_URI=http://127.0.0.1:8888 php -S 0.0.0.0:8888 .ht.router.php # no drush to avoid the drush server timeout",
"dev": "pnpm start",
"clear": "pnpm drush cr",
Expand Down
4 changes: 4 additions & 0 deletions tests/e2e/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"prep": {
"cache": false
},
"webform-snapshots": {
"cache": false,
"dependsOn": ["@custom/cms#prep:database", "prep"]
},
"test:integration:decap": {
"dependsOn": ["@custom/website#build", "prep"],
"env": ["PLAYWRIGHT_WEBSITE_URL"],
Expand Down

0 comments on commit 02c3336

Please sign in to comment.