From 22d4e9230ac95db3239b43f7d37c114d0f04fbb9 Mon Sep 17 00:00:00 2001 From: Brian Bicknell Date: Sun, 2 Nov 2025 14:56:05 -0500 Subject: [PATCH] Updated CI file with more changes. --- .gitea/workflows/ci.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6574474..18d5aea 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,21 +8,30 @@ jobs: build-test: runs-on: [self-hosted, linux, x64, docker] container: - image: ghcr.io/catthehacker/ubuntu:act-latest + # Use a .NET SDK image so you can drop setup-dotnet (faster) + image: mcr.microsoft.com/dotnet/sdk:9.0 options: >- --privileged - -v /var/run/docker.sock:/var/run/docker.sock + # DO NOT mount /var/run/docker.sock here; the runner already does it steps: - - uses: actions/checkout@v4 - - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '9.0.x' + - uses: actions/checkout@v4 + + # If you stick with the .NET SDK image above, you can remove setup-dotnet. + # If you prefer the catthehacker Ubuntu image, keep setup-dotnet. + # - uses: actions/setup-dotnet@v4 + # with: + # dotnet-version: '9.0.x' + - uses: actions/cache@v4 with: path: ~/.nuget/packages key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }} restore-keys: | nuget-${{ runner.os }}- + + - 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" \ No newline at end of file + - run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx"