feat(DRW-001) more fixes to ci
CI/CD / Build (push) Successful in 2m12s
CI/CD / Frontend Build (push) Successful in 1m9s
CI/CD / Unit Tests (push) Successful in 3m22s
CI/CD / Frontend Docker (push) Successful in 6m41s
CI/CD / Docker (push) Successful in 10m43s

This commit is contained in:
2026-09-13 21:11:29 +03:00
parent 9f7979f14b
commit cdd481107e
3 changed files with 1 additions and 450 deletions
+1 -21
View File
@@ -42,24 +42,6 @@ jobs:
name: Unit Tests
needs: build
runs-on: ubuntu-latest
# cargo build never touches a database (no compile-time-checked sqlx
# macros are used anywhere), but the tests do -- #[sqlx::test] spins up
# a real, freshly-migrated database per test, which needs an actual
# Postgres server to connect to and CREATE DATABASE against.
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -80,9 +62,7 @@ jobs:
restore-keys: rust-${{ runner.os }}-
- name: Run tests
env:
DATABASE_URL: postgres://test:test@localhost:5432/test
run: cargo test --release --locked -- --test-threads=4
run: cargo test --release --locked
docker:
name: Docker