From 494c4ce077c060da268aaf78fea21c6b4f0782df Mon Sep 17 00:00:00 2001 From: atakavci Date: Fri, 14 Jun 2024 10:24:06 +0300 Subject: [PATCH 1/8] add test reporter --- .github/workflows/reusable.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable.yml b/.github/workflows/reusable.yml index 48712181..c1f581ec 100644 --- a/.github/workflows/reusable.yml +++ b/.github/workflows/reusable.yml @@ -70,7 +70,14 @@ jobs: echo "${{secrets.REDIS_CA_PEM}}" > tests/NRedisStack.Tests/bin/Debug/${{inputs.clr_version}}/redis_ca.pem echo "${{secrets.REDIS_USER_CRT}}" > tests/NRedisStack.Tests/bin/Debug/${{inputs.clr_version}}/redis_user.crt echo "${{secrets.REDIS_USER_PRIVATE_KEY}}" > tests/NRedisStack.Tests/bin/Debug/${{inputs.clr_version}}/redis_user_private.key - dotnet test -f ${{inputs.clr_version}} --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover + dotnet test -f ${{inputs.clr_version}} --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --results-directory ./test-results/ --logger trx --logger GitHubActions + - uses: dorny/test-reporter@v1 + continue-on-error: true + if: success() || failure() + with: + name: Test Results - Ubuntu + path: 'test-results/*.trx' + reporter: dotnet-trx - name: Codecov uses: codecov/codecov-action@v3 with: From 591a18487915ec1c69ac4de2aed20ca2bdadfc91 Mon Sep 17 00:00:00 2001 From: atakavci Date: Fri, 14 Jun 2024 10:37:56 +0300 Subject: [PATCH 2/8] just githubactions --- .github/workflows/reusable.yml | 9 +-------- tests/NRedisStack.Tests/NRedisStack.Tests.csproj | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/reusable.yml b/.github/workflows/reusable.yml index c1f581ec..f04b8b89 100644 --- a/.github/workflows/reusable.yml +++ b/.github/workflows/reusable.yml @@ -70,14 +70,7 @@ jobs: echo "${{secrets.REDIS_CA_PEM}}" > tests/NRedisStack.Tests/bin/Debug/${{inputs.clr_version}}/redis_ca.pem echo "${{secrets.REDIS_USER_CRT}}" > tests/NRedisStack.Tests/bin/Debug/${{inputs.clr_version}}/redis_user.crt echo "${{secrets.REDIS_USER_PRIVATE_KEY}}" > tests/NRedisStack.Tests/bin/Debug/${{inputs.clr_version}}/redis_user_private.key - dotnet test -f ${{inputs.clr_version}} --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --results-directory ./test-results/ --logger trx --logger GitHubActions - - uses: dorny/test-reporter@v1 - continue-on-error: true - if: success() || failure() - with: - name: Test Results - Ubuntu - path: 'test-results/*.trx' - reporter: dotnet-trx + dotnet test -f ${{inputs.clr_version}} --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --logger trx - name: Codecov uses: codecov/codecov-action@v3 with: diff --git a/tests/NRedisStack.Tests/NRedisStack.Tests.csproj b/tests/NRedisStack.Tests/NRedisStack.Tests.csproj index 8cb0bc40..c0702922 100644 --- a/tests/NRedisStack.Tests/NRedisStack.Tests.csproj +++ b/tests/NRedisStack.Tests/NRedisStack.Tests.csproj @@ -27,6 +27,7 @@ + From d496c0da44b83bb87858f3e23796be6923cf7253 Mon Sep 17 00:00:00 2001 From: atakavci Date: Fri, 14 Jun 2024 10:57:20 +0300 Subject: [PATCH 3/8] add githubactions logger --- .github/workflows/reusable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable.yml b/.github/workflows/reusable.yml index f04b8b89..4ca4331f 100644 --- a/.github/workflows/reusable.yml +++ b/.github/workflows/reusable.yml @@ -70,7 +70,7 @@ jobs: echo "${{secrets.REDIS_CA_PEM}}" > tests/NRedisStack.Tests/bin/Debug/${{inputs.clr_version}}/redis_ca.pem echo "${{secrets.REDIS_USER_CRT}}" > tests/NRedisStack.Tests/bin/Debug/${{inputs.clr_version}}/redis_user.crt echo "${{secrets.REDIS_USER_PRIVATE_KEY}}" > tests/NRedisStack.Tests/bin/Debug/${{inputs.clr_version}}/redis_user_private.key - dotnet test -f ${{inputs.clr_version}} --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --logger trx + dotnet test -f ${{inputs.clr_version}} --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --logger GitHubActions - name: Codecov uses: codecov/codecov-action@v3 with: From 4384c8f84cbf4c4b0bc738af92d8b41e71976c3f Mon Sep 17 00:00:00 2001 From: atakavci Date: Fri, 14 Jun 2024 11:17:23 +0300 Subject: [PATCH 4/8] add nuget --- tests/NRedisStack.Tests/NRedisStack.Tests.csproj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/NRedisStack.Tests/NRedisStack.Tests.csproj b/tests/NRedisStack.Tests/NRedisStack.Tests.csproj index c0702922..daba5299 100644 --- a/tests/NRedisStack.Tests/NRedisStack.Tests.csproj +++ b/tests/NRedisStack.Tests/NRedisStack.Tests.csproj @@ -20,6 +20,10 @@ all + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + @@ -27,7 +31,6 @@ - From d0a0051986f59f6b68fb1f82f23f2766198fb307 Mon Sep 17 00:00:00 2001 From: atakavci Date: Fri, 14 Jun 2024 11:45:29 +0300 Subject: [PATCH 5/8] adding testlogger to Doc --- tests/Doc/Doc.csproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Doc/Doc.csproj b/tests/Doc/Doc.csproj index 5f16c1c2..8eae8727 100644 --- a/tests/Doc/Doc.csproj +++ b/tests/Doc/Doc.csproj @@ -10,6 +10,10 @@ Module + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + From 4373ef7fd3fc467df5d0b17e354f90a7f6f78602 Mon Sep 17 00:00:00 2001 From: atakavci Date: Fri, 14 Jun 2024 12:06:38 +0300 Subject: [PATCH 6/8] add test logger to RE and windows tests --- .github/workflows/integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index de05bcc0..6ef504e5 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -59,7 +59,7 @@ jobs: run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true - name: Test - run: dotnet test -f net8.0 --no-build --verbosity detailed + run: dotnet test -f net8.0 --no-build --verbosity detailed --logger GitHubActions dotnet_6_cluster: name: .NET 6 on [redis-stack cluster] @@ -175,4 +175,4 @@ jobs: shell: cmd run: | START wsl ./redis-stack-server-${{env.redis_stack_version}}/bin/redis-stack-server & - dotnet test -f net481 --no-build --verbosity detailed \ No newline at end of file + dotnet test -f net481 --no-build --verbosity detailed --logger GitHubActions \ No newline at end of file From acfef3519ee84210ddc6d34f66c2e173cea72f43 Mon Sep 17 00:00:00 2001 From: atakavci Date: Thu, 4 Jul 2024 13:43:59 +0300 Subject: [PATCH 7/8] verbose log --- .github/workflows/reusable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable.yml b/.github/workflows/reusable.yml index 4ca4331f..7de887d6 100644 --- a/.github/workflows/reusable.yml +++ b/.github/workflows/reusable.yml @@ -90,5 +90,5 @@ jobs: dotnet nuget remove source nuget.org dotnet nuget list source find . -name '*.csproj' | xargs -I {} sed -E -i 's|.*|${{inputs.clr_version}}|' {} - dotnet restore -s test-source + dotnet restore -s test-source -v detailed dotnet run From 62b5a411f320080324ff07d6403c705097174a08 Mon Sep 17 00:00:00 2001 From: atakavci <58048133+atakavci@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:04:21 +0300 Subject: [PATCH 8/8] Update integration.yml remove empty line --- .github/workflows/integration.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3210bcfa..0b5d6027 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -176,4 +176,3 @@ jobs: run: | START wsl ./redis-stack-server-${{env.redis_stack_version}}/bin/redis-stack-server & dotnet test -f net481 --no-build --verbosity detailed -p:BuildInParallel=false tests/Test.proj --logger GitHubActions -