From 91b7f96fdb657e63c096dc00d7ab0054e96ea1f4 Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Tue, 5 May 2026 22:54:12 -0400 Subject: [PATCH] chore(ci): run backend tests through dotnet SDK container --- .gitea/workflows/deploy-socialize.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy-socialize.yml b/.gitea/workflows/deploy-socialize.yml index e9be146..dc67ecc 100644 --- a/.gitea/workflows/deploy-socialize.yml +++ b/.gitea/workflows/deploy-socialize.yml @@ -7,12 +7,18 @@ on: jobs: test: - runs-on: dotnet + runs-on: ubuntu-latest steps: - - name: Install checkout dependencies - run: apt-get update && apt-get install -y git nodejs - uses: actions/checkout@v4 - - run: dotnet test backend/Socialize.slnx + - name: Install Docker CLI + run: apt-get update && apt-get install -y docker.io + - name: Test backend + run: | + docker run --rm \ + -v "$PWD:/workspace" \ + -w /workspace \ + mcr.microsoft.com/dotnet/sdk:10.0 \ + dotnet test backend/Socialize.slnx image: needs: test