build and test

This commit is contained in:
Elio Bischof
2024-10-16 12:34:53 +02:00
parent 8c6d957f4a
commit fe289e32fa
5 changed files with 15 additions and 9 deletions

View File

@@ -1,15 +1,19 @@
name: Playwright Tests
name: Acceptance Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
acceptance-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run docker-compose
uses: hoverkraft-tech/compose-action@v2.0.1
with:
compose-file: "./acceptance/docker-compose.yaml"
- uses: actions/setup-node@v4
with:
node-version: lts/*

View File

@@ -48,7 +48,7 @@ services:
environment:
KEY: /key/zitadel-admin-sa.json
SERVICE: http://zitadel:8080
WRITE_ENVIRONMENT_FILE: /apps/login/.env.acceptance
WRITE_ENVIRONMENT_FILE: /apps/login/.env.local
volumes:
- "./machinekey:/key"
- "../apps/login:/apps/login"

View File

@@ -6,6 +6,7 @@
"generate": "turbo run generate",
"build": "turbo run build",
"test": "turbo run test",
"start": "turbo run start",
"test:unit": "turbo run test:unit -- --passWithNoTests",
"test:integration": "turbo run test:integration",
"test:watch": "turbo run test:watch",

View File

@@ -70,10 +70,10 @@ export default defineConfig({
// },
],
/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://127.0.0.1:3000',
// reuseExistingServer: !process.env.CI,
// },
/* Run local dev server before starting the tests */
webServer: {
command: 'pnpm start',
url: 'http://127.0.0.1:3000',
reuseExistingServer: !process.env.CI,
},
});

View File

@@ -21,6 +21,7 @@
},
"build": {},
"test": {},
"start": {},
"test:unit": {},
"test:integration": {},
"test:watch": {