diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 67f39bcd..12556e9a 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -1,5 +1,9 @@ name: UI +defaults: + run: + shell: bash -ieo pipefail {0} + on: push: branches: [ "master" ] @@ -8,7 +12,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ['self-hosted', 'prima', 'Linux', 'X64'] permissions: write-all env: DATABASE_URL: postgresql://postgres:pw@localhost:6500/prima @@ -16,11 +20,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup NodeJS - uses: actions/setup-node@v4 - with: - node-version: 20 - - name: Install Dependencies run: npm install -f @@ -34,7 +33,7 @@ jobs: run: npm run test:unit - name: Install Playwright Dependencies - run: npx playwright install --with-deps + run: npx playwright install - name: Integration Tests run: | diff --git a/docker-compose.yml b/docker-compose.yml index 38a5f38e..449c5ce3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,10 +23,10 @@ services: image: prima restart: always ports: - - 8080:3000 + - 7777:3000 environment: - DATABASE_URL=postgresql://postgres:pw@pg/prima - - ORIGIN=http://localhost:8080 + - ORIGIN=http://localhost:7777 build: context: . diff --git a/playwright.config.ts b/playwright.config.ts index a8b9123b..1265f8db 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -14,12 +14,12 @@ export default defineConfig({ // }, webServer: { command: 'docker compose up prima', - url: 'http://127.0.0.1:8080', + url: 'http://127.0.0.1:7777', timeout: 20000, reuseExistingServer: true }, use: { - baseURL: 'http://localhost:8080/', + baseURL: 'http://localhost:7777/', locale: 'de-DE', timezoneId: 'Europe/Berlin' },