CI: connect backend tests to PostgreSQL service hostname
ci / static (push) Failing after 10s
ci / static (pull_request) Failing after 8s
ci / backend (push) Failing after 3m22s
ci / backend (pull_request) Failing after 3m8s
Build & Test with Secrets / build (pull_request) Failing after 2s
ci / frontend (pull_request) Failing after 18s
Build & Test with Secrets / security-scan (pull_request) Failing after 8s
ci / publish (pull_request) Has been skipped
ci / frontend (push) Successful in 4m8s
ci / publish (push) Has been skipped
Build & Test with Secrets / frontend (pull_request) Successful in 2m8s
Build & Test with Secrets / notification (pull_request) Failing after 1s
ci / static (push) Failing after 10s
ci / static (pull_request) Failing after 8s
ci / backend (push) Failing after 3m22s
ci / backend (pull_request) Failing after 3m8s
Build & Test with Secrets / build (pull_request) Failing after 2s
ci / frontend (pull_request) Failing after 18s
Build & Test with Secrets / security-scan (pull_request) Failing after 8s
ci / publish (pull_request) Has been skipped
ci / frontend (push) Successful in 4m8s
ci / publish (push) Has been skipped
Build & Test with Secrets / frontend (pull_request) Successful in 2m8s
Build & Test with Secrets / notification (pull_request) Failing after 1s
This commit is contained in:
@@ -35,10 +35,8 @@ jobs:
|
|||||||
POSTGRES_DB: kartsell
|
POSTGRES_DB: kartsell
|
||||||
POSTGRES_USER: kartsell
|
POSTGRES_USER: kartsell
|
||||||
POSTGRES_PASSWORD: kartsell
|
POSTGRES_PASSWORD: kartsell
|
||||||
# The Gitea runner already uses host port 5432 for its production tunnel.
|
|
||||||
# Keep the service isolated on a dedicated host port for CI.
|
|
||||||
ports: ["15432:5432"]
|
|
||||||
options: >-
|
options: >-
|
||||||
|
--network-alias postgres
|
||||||
--health-cmd "pg_isready -U kartsell"
|
--health-cmd "pg_isready -U kartsell"
|
||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
@@ -52,16 +50,16 @@ jobs:
|
|||||||
- run: dotnet build KArtSell.sln --no-restore -c Release
|
- run: dotnet build KArtSell.sln --no-restore -c Release
|
||||||
- run: dotnet run --project src/KArtSell.DbMigrator -c Release --no-build
|
- run: dotnet run --project src/KArtSell.DbMigrator -c Release --no-build
|
||||||
env:
|
env:
|
||||||
KARTSELL_POSTGRES: Host=localhost;Port=15432;Database=kartsell;Username=kartsell;Password=kartsell
|
KARTSELL_POSTGRES: Host=postgres;Port=5432;Database=kartsell;Username=kartsell;Password=kartsell
|
||||||
- run: dotnet run --project src/KArtSell.DbMigrator -c Release --no-build
|
- run: dotnet run --project src/KArtSell.DbMigrator -c Release --no-build
|
||||||
env:
|
env:
|
||||||
KARTSELL_POSTGRES: Host=localhost;Port=15432;Database=kartsell;Username=kartsell;Password=kartsell
|
KARTSELL_POSTGRES: Host=postgres;Port=5432;Database=kartsell;Username=kartsell;Password=kartsell
|
||||||
- name: Run backend tests with hang evidence
|
- name: Run backend tests with hang evidence
|
||||||
run: >-
|
run: >-
|
||||||
dotnet test KArtSell.sln --no-build -c Release --logger trx
|
dotnet test KArtSell.sln --no-build -c Release --logger trx
|
||||||
--blame-hang --blame-hang-timeout 2m
|
--blame-hang --blame-hang-timeout 2m
|
||||||
env:
|
env:
|
||||||
KARTSELL_POSTGRES: Host=localhost;Port=15432;Database=kartsell;Username=kartsell;Password=kartsell
|
KARTSELL_POSTGRES: Host=postgres;Port=5432;Database=kartsell;Username=kartsell;Password=kartsell
|
||||||
|
|
||||||
- name: Check OpenAPI Breaking Changes (AEG-X-008)
|
- name: Check OpenAPI Breaking Changes (AEG-X-008)
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user