fix: fix ci issues and update styles to remove ui elements
CI / backend (push) Successful in 6m11s
CI / frontend (push) Failing after 54s

This commit is contained in:
voltsrage
2026-08-11 20:33:23 +08:00
parent c871dc4842
commit f2eab26ad0
9 changed files with 85 additions and 30 deletions
+14
View File
@@ -14,6 +14,18 @@ on:
jobs:
backend:
runs-on: ubuntu-latest
# act_runner's docker executor runs steps inside their own job container — a
# sibling of the "docker compose" containers below — so "localhost" from inside
# the job container is NOT the Docker host and can't reach the published
# Postgres/Redis ports (this is what "Connection refused" on 127.0.0.1:5437
# in the Test step means). The Test step below points at host.docker.internal
# instead; that hostname must resolve inside the job container, which on Linux
# requires the runner itself (not this workflow) to add
# `--add-host=host.docker.internal:host-gateway` — set
# `container: { options: "--add-host=host.docker.internal:host-gateway" }` in the
# act_runner's config.yaml. Docker Desktop runners already resolve this hostname
# out of the box. See docs/25-gitea-cicd-docker-deploy.md ("Runner requirement
# for Compose-based tests").
steps:
- uses: actions/checkout@v4
@@ -62,6 +74,8 @@ jobs:
- name: Test
env:
ASPNETCORE_ENVIRONMENT: "Testing"
CONNECTIONSTRINGS__DEFAULTCONNECTION: "Host=host.docker.internal;Port=5437;Database=vigilcare_records_test;Username=postgres;Password=password"
REDIS__CONNECTIONSTRING: "host.docker.internal:6383,defaultDatabase=1,allowAdmin=true"
run: |
dotnet test VigilCareRecords.sln -c Release --no-build \
--logger "trx;LogFileName=test-results.trx" \