From 7fea79676bb8d3da9d23c9261f4f76cac8fb07af Mon Sep 17 00:00:00 2001 From: Ali <36738510+MrAliSalehi@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:36:51 +0330 Subject: [PATCH 1/4] Update build_test.yml --- .github/workflows/build_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index fca7be2..54e9c03 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -25,7 +25,7 @@ jobs: - name: Build run: dotnet build --no-restore - name: Test - run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=.github/tests/ -p:CoverletOutputFormat=opencover --no-build --verbosity normal + run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=../../.github/tests/ -p:CoverletOutputFormat=opencover --no-build --verbosity normal - name: Create Test Coverage Badge uses: simon-k/dotnet-code-coverage-badge@v1.0.0 id: create_coverage_badge From c51aa357f1b7f86896493678baa4daa2376dd058 Mon Sep 17 00:00:00 2001 From: Ali <36738510+MrAliSalehi@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:46:51 +0330 Subject: [PATCH 2/4] Update build_test.yml --- .github/workflows/build_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 54e9c03..646c429 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -25,14 +25,14 @@ jobs: - name: Build run: dotnet build --no-restore - name: Test - run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=../../.github/tests/ -p:CoverletOutputFormat=opencover --no-build --verbosity normal + run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=testResult/ -p:CoverletOutputFormat=opencover --no-build --verbosity normal - name: Create Test Coverage Badge uses: simon-k/dotnet-code-coverage-badge@v1.0.0 id: create_coverage_badge with: label: Unit Test Coverage color: brightgreen - path: ../../.github/tests/coverage.opencover.xml + path: testResult/coverage.opencover.xml gist-filename: sharpgram-coverage.json gist-id: 7e37706c2cdef28ee452cd83721f6a3c gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }} From 6798ef7a516c1694be978af6dc9beb5a57d1acb0 Mon Sep 17 00:00:00 2001 From: Ali <36738510+MrAliSalehi@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:50:46 +0330 Subject: [PATCH 3/4] Update build_test.yml --- .github/workflows/build_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 646c429..d89a044 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -25,7 +25,7 @@ jobs: - name: Build run: dotnet build --no-restore - name: Test - run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=testResult/ -p:CoverletOutputFormat=opencover --no-build --verbosity normal + run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=testResult/ -p:CoverletOutputFormat=opencover --verbosity normal - name: Create Test Coverage Badge uses: simon-k/dotnet-code-coverage-badge@v1.0.0 id: create_coverage_badge From 2233f6dc42a87e430f989138b1db074878acaef3 Mon Sep 17 00:00:00 2001 From: Ali <36738510+MrAliSalehi@users.noreply.github.com> Date: Mon, 30 Sep 2024 18:06:44 +0330 Subject: [PATCH 4/4] Update build_test.yml --- .github/workflows/build_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index d89a044..cab460e 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -23,9 +23,9 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --no-restore + run: dotnet build --no-restore -p:DeterministicSourcePaths=false -p:DebugType=pdbonly - name: Test - run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=testResult/ -p:CoverletOutputFormat=opencover --verbosity normal + run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=testResult/ -p:CoverletOutputFormat=opencover --verbosity normal --no-build - name: Create Test Coverage Badge uses: simon-k/dotnet-code-coverage-badge@v1.0.0 id: create_coverage_badge