Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self hosted runner #153

Merged
merged 7 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: UI

defaults:
run:
shell: bash -ieo pipefail {0}

on:
push:
branches: [ "master" ]
Expand All @@ -8,19 +12,14 @@ 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
steps:
- 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

Expand All @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: .

Expand Down
4 changes: 2 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
Expand Down