fix: mount /apps and docker socket in PR workflow build-and-deploy-ci job (#41)
Reviewed-on: #41 Co-authored-by: David Gwilliam <dhgwilliam@gmail.com> Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
This commit was merged in pull request #41.
This commit is contained in:
@@ -4,16 +4,12 @@ export default defineConfig({
|
||||
testDir: './e2e',
|
||||
timeout: 30000,
|
||||
expect: {
|
||||
timeout: 5000
|
||||
timeout: 2000
|
||||
},
|
||||
// Run tests sequentially to avoid database conflicts
|
||||
fullyParallel: false,
|
||||
// Fail the build on CI if you accidentally left test.only in the source code.
|
||||
forbidOnly: !!process.env.CI,
|
||||
// Retry on CI only.
|
||||
retries: process.env.CI ? 1 : 0,
|
||||
// Use 2 workers in CI for parallel project execution; 1 locally
|
||||
workers: process.env.CI ? 2 : 1,
|
||||
// Run tests in parallel for speed - database isolation is per-test via unique data
|
||||
fullyParallel: true,
|
||||
// Use multiple workers in CI to speed up test execution
|
||||
workers: process.env.CI ? 10 : 1,
|
||||
// Reporter to use
|
||||
reporter: 'html',
|
||||
// Global setup and teardown
|
||||
@@ -43,6 +39,7 @@ export default defineConfig({
|
||||
storageState: 'playwright/.auth/user.json',
|
||||
},
|
||||
dependencies: ['setup'],
|
||||
testIgnore: ['**/admin-*.test.ts'],
|
||||
},
|
||||
// Admin user project
|
||||
{
|
||||
@@ -63,6 +60,7 @@ export default defineConfig({
|
||||
storageState: undefined,
|
||||
},
|
||||
dependencies: ['setup'],
|
||||
testIgnore: ['**/admin-*.test.ts'],
|
||||
},
|
||||
],
|
||||
// Run your local dev server before starting the tests
|
||||
|
||||
Reference in New Issue
Block a user