Skip to content

Commit

Permalink
chore: run unit tests with .NET 6.0 SDK (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 authored Jan 15, 2025
1 parent f5e29fe commit a013783
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
- name: Setup .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup .NET 6.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
- name: Execute unit tests
run: dotnet test ./tests/Application.Tests/CTF.Application.Tests.csproj -c Release --framework=net8.0
run: dotnet test ./tests/Application.Tests/CTF.Application.Tests.csproj -c Release

integration_testing:
runs-on: ubuntu-latest
Expand All @@ -40,10 +44,14 @@ jobs:
--health-retries=3
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
- name: Setup .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup .NET 6.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
- name: Check MariaDB version
run: docker exec mariadb mariadb --version
- name: Check SQLite version
Expand All @@ -55,4 +63,4 @@ jobs:
- name: Create .env.test file
run: cp ./tests/Persistence.Tests/.env.test.example ./tests/Persistence.Tests/.env.test
- name: Execute integration tests
run: dotnet test ./tests/Persistence.Tests/Persistence.Tests.csproj -c Release --framework=net8.0
run: dotnet test ./tests/Persistence.Tests/Persistence.Tests.csproj -c Release

0 comments on commit a013783

Please sign in to comment.