From 2cbd2b2ab3185faf4dcec23c42c653f7b4db2164 Mon Sep 17 00:00:00 2001 From: David Sungaila Date: Tue, 2 Jul 2024 20:30:24 +0200 Subject: [PATCH] Update workflow --- .github/workflows/dotnet.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1e22f300..2d3e3fee 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -232,15 +232,21 @@ jobs: if-no-files-found: error retention-days: 1 docker: - name: Docker (${{ matrix.os }}) + name: Test (docker ${{ matrix.os }}) needs: build strategy: fail-fast: false matrix: - os: [windows-latest] + os: [ubuntu-latest] runs-on: ${{ matrix.os }} if: success() && (github.event_name != 'workflow_dispatch' && true || inputs.run_docker) == true steps: + - name: Checkout + uses: actions/checkout@main + with: + fetch-depth: 0 + sparse-checkout: | + src/Tests/Dockerfiles - name: Download test assemblies if: success() || failure() uses: actions/download-artifact@main @@ -249,12 +255,12 @@ jobs: - name: docker build run: docker build -t test-client -f src/Tests/Dockerfiles/Dockerfile . - name: docker run - run: docker run --rm --mount type=bind,source=${GITHUB_WORKSPACE}/TestResults,target=/app/TestResults -t test-client + run: docker run --rm --mount type=bind,source=.,target=/app/TestResults -t test-client - name: Upload test results if: success() || failure() uses: actions/upload-artifact@main with: - name: Docker test results (${{ matrix.os }}) + name: Test results (docker ${{ matrix.os }}) path: ./**/*.trx if-no-files-found: error retention-days: 1