32 lines
720 B
YAML
32 lines
720 B
YAML
name: Test
|
|
run-name: Test?
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container: mcr.microsoft.com/playwright:v1.48.1-jammy
|
|
services:
|
|
database:
|
|
image: postgres:16
|
|
env:
|
|
POSTGRES_PASSWORD: testpassword
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: test
|
|
options: >-
|
|
--health-cmd pg_isready
|
|
--health-interval 10s
|
|
--health-timeout 5s
|
|
--health-retries 5
|
|
ports:
|
|
- 5434:5432
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Run Tests
|
|
env: NODE_OPTIONS=--max-old-space-size=8192
|
|
run: |
|
|
npm install
|
|
npm run ci
|
|
npm ci
|
|
npx playwright test
|