ci: multiple jobs (#3337)

* ci: move playwright install to test:e2e script

* test: adjust test db names to avoid conflicts

* ci: clean up core job

* ci: add db-mongodb build job

* chore: add jest setup db adapter logging

* chore: install on mongodb job

* chore: adjust root deps

* chore: use turbo for db-mongodb to ensure build order

* chore: use turbo from .bin

* chore: add build script for db-postgres

* ci: add db-postgres build job

* chore: upgrade actions/checkout and actions/setup-node

* chore: rename github workflow file to main
This commit is contained in:
Elliot DeNolf
2023-09-15 16:17:41 -04:00
committed by GitHub
parent 09a455bb7b
commit dd0514bd2c
6 changed files with 187 additions and 96 deletions

View File

@@ -26,15 +26,12 @@
"pretest": "pnpm build",
"test": "pnpm test:int && pnpm test:components && pnpm test:e2e",
"test:components": "cross-env jest --config=jest.components.config.js",
"test:e2e": "ts-node -T ./test/runE2E.ts",
"test:e2e": "npx playwright install --with-deps && ts-node -T ./test/runE2E.ts",
"test:e2e:debug": "cross-env PWDEBUG=1 DISABLE_LOGGING=true playwright test",
"test:e2e:headed": "cross-env DISABLE_LOGGING=true playwright test --headed",
"test:int": "cross-env DISABLE_LOGGING=true jest --forceExit --detectOpenHandles",
"translateNewKeys": "pnpm --filter payload run translateNewKeys"
},
"dependencies": {
"turbo": "^1.10.13"
},
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
"@playwright/test": "1.37.1",
@@ -53,8 +50,10 @@
"jest": "29.6.4",
"jest-environment-jsdom": "29.6.4",
"prettier": "^3.0.3",
"rimraf": "3.0.2",
"shelljs": "0.8.5",
"ts-node": "10.9.1",
"turbo": "^1.10.13",
"typescript": "5.2.2",
"uuid": "^9.0.0"
},