From a737b91e8ffa7b6f4fcc959afd2e8255f525cd53 Mon Sep 17 00:00:00 2001 From: Florian Hopfner Date: Sun, 26 Nov 2023 15:38:47 +0100 Subject: [PATCH 1/2] add unit test execution --- .github/workflows/version-release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/version-release.yml b/.github/workflows/version-release.yml index 93b2f53..5a68fc9 100644 --- a/.github/workflows/version-release.yml +++ b/.github/workflows/version-release.yml @@ -20,6 +20,14 @@ jobs: - name: Build run: dotnet build --configuration Release EDMXTrimmer + - name: Test + run: dotnet test --logger:nunit --configuration Release EDMXTrimmer + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action/composite@v2 + with: + files: '**/TestResults/*.xml' + comment_mode: 'off' + - name: Publish run: dotnet publish --configuration Release EDMXTrimmer --output zip From ec076b4fff40f04dafe5777547800801867518a0 Mon Sep 17 00:00:00 2001 From: Florian Hopfner Date: Sun, 26 Nov 2023 15:39:14 +0100 Subject: [PATCH 2/2] publish without unit test project --- .github/workflows/version-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version-release.yml b/.github/workflows/version-release.yml index 5a68fc9..4003fe0 100644 --- a/.github/workflows/version-release.yml +++ b/.github/workflows/version-release.yml @@ -19,7 +19,7 @@ jobs: - name: Build run: dotnet build --configuration Release EDMXTrimmer - + - name: Test run: dotnet test --logger:nunit --configuration Release EDMXTrimmer - name: Publish Test Results @@ -29,7 +29,7 @@ jobs: comment_mode: 'off' - name: Publish - run: dotnet publish --configuration Release EDMXTrimmer --output zip + run: dotnet publish --configuration Release EDMXTrimmer/EDMXTrimmer --output zip - name: Upload EDMXTrimmer_${{ github.event.release.tag_name }}.zip uses: actions/upload-artifact@v3