From 1d02d0480f906575bdedb6f26550bca040d031b3 Mon Sep 17 00:00:00 2001 From: Luiz Adolfo Date: Tue, 11 Feb 2025 08:53:14 -0300 Subject: [PATCH 1/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3373f41..aaf5c8b 100644 --- a/README.md +++ b/README.md @@ -102,4 +102,4 @@ If the request predicate is matched, the following configured response will be r ## License -This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. \ No newline at end of file +This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. From e0fb41c0714755ad5ce2dfe04f954cd36f8c9bfd Mon Sep 17 00:00:00 2001 From: Luiz Adolfo Date: Tue, 11 Feb 2025 09:05:01 -0300 Subject: [PATCH 2/7] Update main.yml --- .github/workflows/main.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 890e3a1..bc5b53d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 9.0.x - - name: Restore dependencies + - name: Restore run: dotnet restore -p:NuGetAudit=true -p:NuGetAuditMode=All -p:NuGetAuditLevel=Moderate -p:TreatWarningsAsErrors=true - name: Build run: dotnet build --no-restore @@ -22,8 +22,18 @@ jobs: run: | cd tests/Fresp.Tests dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov + + publish-coverage: + needs: code-validation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 9.0.x - name: Publish coverage report to coveralls.io uses: coverallsapp/github-action@master with: github-token: ${{ secrets.github_token }} - path-to-lcov: tests/Fresp.Tests/TestResults/coverage.info \ No newline at end of file + path-to-lcov: tests/Fresp.Tests/TestResults/coverage.info From c2d6d3056fa5e64aba6f0f5032432dacb3815457 Mon Sep 17 00:00:00 2001 From: Luiz Adolfo Date: Tue, 11 Feb 2025 09:06:49 -0300 Subject: [PATCH 3/7] Update main.yml --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc5b53d..b9cab4a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,6 +32,10 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 9.0.x + - name: Test + run: | + cd tests/Fresp.Tests + dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov - name: Publish coverage report to coveralls.io uses: coverallsapp/github-action@master with: From e645d8e62d38dbe55dd3fe4735ea51fcb9a9001e Mon Sep 17 00:00:00 2001 From: Luiz Adolfo Date: Tue, 11 Feb 2025 09:13:09 -0300 Subject: [PATCH 4/7] Update main.yml --- .github/workflows/main.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b9cab4a..02f5f73 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,12 @@ jobs: run: | cd tests/Fresp.Tests dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov + - name: Archive code coverage results + uses: actions/upload-artifact@v4 + with: + name: code-coverage-report + path: tests/Fresp.Tests/TestResults/coverage.info + retention-days: 1 publish-coverage: needs: code-validation @@ -32,10 +38,10 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 9.0.x - - name: Test - run: | - cd tests/Fresp.Tests - dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov + - name: Download code coverage results + uses: actions/download-artifact@v4 + with: + name: code-coverage-report - name: Publish coverage report to coveralls.io uses: coverallsapp/github-action@master with: From 814710fb570a1743bdc24aed24b3e2d1347683d1 Mon Sep 17 00:00:00 2001 From: Luiz Adolfo Date: Tue, 11 Feb 2025 09:13:23 -0300 Subject: [PATCH 5/7] Update README.md From 293a9ae03371942e51de5b043da1a8f49f9f97cb Mon Sep 17 00:00:00 2001 From: Luiz Adolfo Date: Tue, 11 Feb 2025 09:17:15 -0300 Subject: [PATCH 6/7] Update main.yml --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 02f5f73..b8ccf23 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,6 +42,13 @@ jobs: uses: actions/download-artifact@v4 with: name: code-coverage-report + - name: Check downloaded code coverage results + run: | + ls + cd tests/Fresp.Tests + ls + cd TestResults + ls - name: Publish coverage report to coveralls.io uses: coverallsapp/github-action@master with: From 0b970388ca99b352fad32594c5691e2493d2cde5 Mon Sep 17 00:00:00 2001 From: Luiz Adolfo Date: Tue, 11 Feb 2025 09:20:58 -0300 Subject: [PATCH 7/7] Update main.yml --- .github/workflows/main.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b8ccf23..26b9117 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,13 +20,12 @@ jobs: run: dotnet build --no-restore - name: Test run: | - cd tests/Fresp.Tests - dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov + dotnet test /p:CollectCoverage=true /p:CoverletOutput=../../TestResults/ /p:CoverletOutputFormat=lcov - name: Archive code coverage results uses: actions/upload-artifact@v4 with: name: code-coverage-report - path: tests/Fresp.Tests/TestResults/coverage.info + path: TestResults/coverage.info retention-days: 1 publish-coverage: @@ -42,15 +41,8 @@ jobs: uses: actions/download-artifact@v4 with: name: code-coverage-report - - name: Check downloaded code coverage results - run: | - ls - cd tests/Fresp.Tests - ls - cd TestResults - ls - name: Publish coverage report to coveralls.io uses: coverallsapp/github-action@master with: github-token: ${{ secrets.github_token }} - path-to-lcov: tests/Fresp.Tests/TestResults/coverage.info + path-to-lcov: coverage.info