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

Fix coverage reporting #1683

Merged
merged 3 commits into from
Nov 22, 2023
Merged
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
16 changes: 2 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ jobs:
runs-on: windows-latest

steps:
- name: Stub Node dependencies
shell: bash
run: touch package-lock.json
- name: Install Node for coverage reporting
uses: actions/[email protected]
with:
node-version: '16.x'
cache: 'npm'
- name: LCov merger tool
run: npm install -g lcov-result-merger
- name: Checkout code
uses: actions/checkout@v4
- name: Determine RDMP build version
Expand Down Expand Up @@ -105,13 +95,11 @@ jobs:
mv `find coverage -type f` fs-ui.lcov
dotnet test Rdmp.Core.Tests/Rdmp.Core.Tests.csproj --nologo --collect:"XPlat Code Coverage" --no-build --verbosity minimal -c Release --results-directory coverage -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=lcov
mv `find coverage -type f` fs-core.lcov
- name: Merge LCovs
run: lcov-result-merger "{db,fs}-{ui,core}.lcov" all.lcov
- name: Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: all.lcov
files: ./db-ui.lcov ./db-core.lcov ./fs-ui.lcov ./fs-core.lcov
flag-name: unit tests

- name: Package
Expand Down