Files
jsmr/.gitea/workflows/ci.yml
Brian Bicknell 678e8d4fc4
All checks were successful
ci / build-test (push) Successful in 1m27s
Implemented test containers host override.
2025-11-02 15:21:54 -05:00

29 lines
812 B
YAML

name: ci
on:
push:
pull_request:
jobs:
build-test:
runs-on: [self-hosted, linux, x64, docker]
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
options: >-
--privileged
env:
TESTCONTAINERS_RYUK_DISABLED: 'true'
TESTCONTAINERS_CHECKS_DISABLE: 'true'
TESTCONTAINERS_HOST_OVERRIDE: host.docker.internal
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Docker sanity (ensures socket mount is working)
run: docker version
- run: dotnet restore
- run: dotnet build --configuration Release --no-restore
- run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx"