Fixed CI
Checks / test (push) Failing after 2m35s

This commit is contained in:
ab committed 2026-09-24 15:59:30 +03:00
1 parent a47c4a0398
commit 5b56b4a4cc
3 files changed
+20 -3

No files matched your search

+14 -3
View File
@@ -5,19 +5,30 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest
container: node:22-bookworm
defaults:
run:
shell: bash
services:
postgres:
image: postgres:17
env:
POSTGRES_PASSWORD: test-only
POSTGRES_DB: meguri_test
ports: ["5432:5432"]
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s --health-timeout 5s --health-retries 10
env:
MEGURI_TEST_DATABASE_URL: postgresql://postgres:test-only@127.0.0.1:5432/meguri_test
MEGURI_TEST_DATABASE_URL: postgresql://postgres:test-only@postgres:5432/meguri_test
steps:
- name: Install build and database tools
run: |
apt-get update
apt-get install -y --no-install-recommends build-essential pkg-config libssl-dev postgresql-client
- name: Check PostgreSQL from the job container
env:
PGCONNECT_TIMEOUT: "5"
run: psql "$MEGURI_TEST_DATABASE_URL" -X -v ON_ERROR_STOP=1 -c 'SELECT 1'
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.97.0
with:
@@ -35,7 +46,7 @@ jobs:
- run: npx playwright install --with-deps chromium
- name: Browser and API checks
env:
DATABASE_URL: postgresql://postgres:test-only@127.0.0.1:5432/meguri_test
DATABASE_URL: postgresql://postgres:test-only@postgres:5432/meguri_test
MEGURI_SEED_DEMO: "true"
MEGURI_ALLOW_SIGNUP: "true"
MEGURI_BROWSER_CHANNEL: chromium