👷(CI) add test-e2e job to people.yml

Add test-e2e to people.yml, it will run e2e tests on every PR.
Steps:
  - set env vars for e2e tests
  - build and start docker servers
  (backend, keycloak, DB)
  - install playwright
  - build apps
  - run e2e tests
  - save reports
This commit is contained in:
Anthony LC
2024-01-11 17:06:25 +01:00
committed by Anthony LC
parent 5f280ae3fc
commit da851f508a
8 changed files with 67 additions and 19 deletions

View File

@@ -32,7 +32,7 @@ export default defineConfig({
},
webServer: {
command: 'cd ../.. && yarn dev:desk --port ' + PORT,
command: `cd ../.. && yarn app:${process.env.CI ? "start" : "dev"} --port ${PORT}`,
url: baseURL,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,