From 44256f996274100428bf410e65dd4314f2d4a8a4 Mon Sep 17 00:00:00 2001 From: Andre Hofmeister <9199345+HofmeisterAn@users.noreply.github.com> Date: Sat, 12 Oct 2024 08:14:10 +0200 Subject: [PATCH] test: Run MSSQL Docker image on Ubuntu VM images --- .github/workflows/cicd.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 9f221c5aa..052eeda12 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -29,11 +29,14 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-22.04, windows-2022 ] + os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, ubuntu-latest, windows-2022 ] runs-on: ${{ matrix.os }} steps: + - name: Debug MSSQL Container Start + run: docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=YourStrong!Passw0rd' mcr.microsoft.com/mssql/server:2019-CU18-ubuntu-20.04 + - name: Checkout Repository uses: actions/checkout@v4 with: @@ -78,6 +81,15 @@ jobs: - name: Run Tests run: dotnet cake --target=Tests --test-filter=${{ startsWith(matrix.os, 'ubuntu') && 'FullyQualifiedName~Testcontainers' || 'DockerPlatform=Windows' }} + # The Test Reporter GH Action is not compatible with the recent + # actions/upload-artifact@v4 updates: https://github.com/dorny/test-reporter/issues/363. + - name: Upload Test And Coverage Results + uses: actions/upload-artifact@v3 + if: always() + with: + name: ${{ matrix.os }}-v3 + path: test-results + - name: Upload Test And Coverage Results uses: actions/upload-artifact@v4 if: always() @@ -170,4 +182,4 @@ jobs: with: version: ${{ env.semVer }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file