Setup action doesn't work, try defining as a service I guess
Test / test (push) Failing after 31s Details

This commit is contained in:
Jeff 2024-10-19 17:25:17 -04:00
parent d66c72ce96
commit 8feb9bd37a
1 changed files with 14 additions and 7 deletions

View File

@ -6,15 +6,22 @@ jobs:
test:
runs-on: ubuntu-latest
container: mcr.microsoft.com/playwright:v1.48.1-jammy
services:
postgres:
image: postgres
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
- uses: ikalnytskyi/action-setup-postgres@v6
with:
username: postgres
password: testpassword
database: test
port: 5434
ssl: "on"
- name: Run Tests
env: NODE_OPTIONS=--max-old-space-size=8192
run: |