fix: fix ci issues and update styles to remove ui elements
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user