diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 1ccb6002..a07bf8b4 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -20,9 +20,23 @@ jobs: back-end-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Run backend tests + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 7.x + + - name: Restore Dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Test run: dotnet test --configuration Release --no-build --collect:"XPlat Code Coverage" --results-directory ./coverage + - name: Code Coverage Report uses: irongut/CodeCoverageSummary@v1.3.0 with: diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 6ca31061..033679e0 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -10,6 +10,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive +