Skip to content

Commit

Permalink
test: Run MSSQL Docker image on Ubuntu VM images
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Oct 12, 2024
1 parent 12cccf9 commit 44256f9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -170,4 +182,4 @@ jobs:
with:
version: ${{ env.semVer }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 44256f9

Please sign in to comment.