From c449d0e04d18138ff032a87e6ebc8c06f1dfefa1 Mon Sep 17 00:00:00 2001 From: Kieron Lanning Date: Wed, 12 Jun 2024 06:41:56 +0100 Subject: [PATCH 1/6] chore: package update --- src/Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 9262c36b..c25ca2fa 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -1,7 +1,7 @@  true - 4.9.2 + 4.10.0 @@ -25,6 +25,6 @@ - + \ No newline at end of file From 2f38f798df19998ced619676260ad4b5e95f18c6 Mon Sep 17 00:00:00 2001 From: Kieron Lanning Date: Wed, 12 Jun 2024 06:42:11 +0100 Subject: [PATCH 2/6] ci: updated build to include test reports --- .github/workflows/publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ab881c8a..c013d476 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -64,9 +64,15 @@ jobs: uses: actions/setup-dotnet@v4 with: global-json-file: ./src/global.json - + - name: Run tests - run: dotnet test ${{ env.SolutionPath }} --configuration ${{ env.BuildConfigutation }} + run: dotnet test ${{ env.SolutionPath }} --configuration ${{ env.BuildConfigutation }} --logger "trx;LogFileName=test-results.trx" --results-directory ./test-results + + - name: Upload test results + uses: actions/upload-artifact@v2 + with: + name: test-results + path: ./test-results deploy: if: github.event_name == 'release' From 530d27ee16a40d963bc827f978f247cebd4ed45e Mon Sep 17 00:00:00 2001 From: Kieron Lanning Date: Wed, 12 Jun 2024 06:45:48 +0100 Subject: [PATCH 3/6] ci: fixed folder path --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c013d476..09a78157 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -72,7 +72,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: test-results - path: ./test-results + path: /test-results deploy: if: github.event_name == 'release' From b87623c8c3e62a3035ff1d29ac60c16d4a542129 Mon Sep 17 00:00:00 2001 From: Kieron Lanning Date: Wed, 12 Jun 2024 06:48:25 +0100 Subject: [PATCH 4/6] ci: trying to fix test result upload folder --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 09a78157..90e8afc1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -72,7 +72,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: test-results - path: /test-results + path: ./src/test-results deploy: if: github.event_name == 'release' From 6eec4821b500fe77e0b8e40be7d3d96aa6927656 Mon Sep 17 00:00:00 2001 From: Kieron Lanning Date: Wed, 12 Jun 2024 06:51:04 +0100 Subject: [PATCH 5/6] ci: updated github action version --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 90e8afc1..f6e9991b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -69,7 +69,7 @@ jobs: run: dotnet test ${{ env.SolutionPath }} --configuration ${{ env.BuildConfigutation }} --logger "trx;LogFileName=test-results.trx" --results-directory ./test-results - name: Upload test results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: test-results path: ./src/test-results From a92334c1d01d8db27d3e69d5adf6b950f8614c45 Mon Sep 17 00:00:00 2001 From: Kieron Lanning Date: Wed, 12 Jun 2024 06:55:17 +0100 Subject: [PATCH 6/6] ci: add test report display --- .github/workflows/publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6e9991b..b66728c1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -68,6 +68,14 @@ jobs: - name: Run tests run: dotnet test ${{ env.SolutionPath }} --configuration ${{ env.BuildConfigutation }} --logger "trx;LogFileName=test-results.trx" --results-directory ./test-results + - name: Test Report + uses: dorny/test-reporter@v1 + if: success() || failure() # run this step even if previous step failed + with: + name: .NET Tests + path: ./src/test-results/*.trx + reporter: dotnet-trx + - name: Upload test results uses: actions/upload-artifact@v4 with: