Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test code coverage #185

Merged
merged 6 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Chrome
run: |
Expand All @@ -16,7 +16,7 @@ jobs:
sudo apt install ./google-chrome-stable_current_amd64.deb

- name: Setup node 18
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand Down Expand Up @@ -57,3 +57,22 @@ jobs:
path: platform/reports/TESTS*.xml
reporter: java-junit
fail-on-error: true

- name: Setup .NET Core - for coverage report # Required to execute ReportGenerator
uses: actions/setup-dotnet@v4
if: success() || failure() && steps.run-unit-tests.outcome == 'success'
with:
dotnet-version: 8.x
dotnet-quality: 'ga'

- name: Create coverage md report
uses: danielpalme/[email protected]
if: success() || failure() && steps.run-unit-tests.outcome == 'success'
with:
reports: ./platform/reports/coverage-report.xml
targetdir: ./platform/reports/
reporttypes: MarkdownSummaryGithub

- name: Output coverage to summary
if: success() || failure() && steps.run-unit-tests.outcome == 'success'
run: cat ./platform/reports/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
Loading