diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9078b1d..5d1a41f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,22 +6,21 @@ on: jobs: build-test: - runs-on: [self-hosted, linux, x64, docker] + runs-on: self-hosted + container: + image: ghcr.io/catthehacker/ubuntu:act-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '9.0.x' + dotnet-version: '8.0.x' - uses: actions/cache@v4 with: path: ~/.nuget/packages key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }} restore-keys: | nuget-${{ runner.os }}- - - name: Restore - run: dotnet restore - - name: Build (Release) - run: dotnet build --configuration Release --no-restore - - name: Test - env: { DOTNET_CLI_TELEMETRY_OPTOUT: 1 } - run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx" + - run: dotnet restore + - run: dotnet build --configuration Release --no-restore + - run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx" +