From 3cd01f14d1daba20bfb322cfe4554489b6d55ce1 Mon Sep 17 00:00:00 2001 From: Paul Welter Date: Sun, 3 Mar 2024 07:56:32 -0600 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 00c2521..f0addc1 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -32,7 +32,7 @@ jobs: - name: Install .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: | + dotnet-version: | 6.0.x 7.0.x 8.0.x @@ -44,25 +44,19 @@ jobs: run: dotnet build --no-restore --configuration Release - name: Run Test - run: dotnet test --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings + run: dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings - - name: Generate Coverage - uses: danielpalme/ReportGenerator-GitHub-Action@5.2.2 - with: - reports: '${{github.workspace}}/test/*/TestResults/*/coverage.info' - targetdir: ${{env.BUILD_PATH}} - reporttypes: lcov - name: Report Coverage if: success() uses: coverallsapp/github-action@v2 with: - file: artifacts/lcov.info + file: "${{github.workspace}}/test/*/TestResults/*/coverage.info" format: lcov - name: Create Packages if: success() && github.event_name != 'pull_request' - run: dotnet pack --configuration Release --include-symbols --include-source --no-build --no-restore --output "${{env.BUILD_PATH}}" + run: dotnet pack --configuration Release --include-symbols --include-source --no-build --output "${{env.BUILD_PATH}}" - name: Upload Packages if: success() && github.event_name != 'pull_request'