Skip to content

Commit

Permalink
Fix coverage reporting (#1683)
Browse files Browse the repository at this point in the history
* Rearrange lcov file handling
* Update coveralls action
* Point Github-Actions Dependabot updates at develop branch, add JFriel as reviewer
  • Loading branch information
jas88 authored Nov 22, 2023
1 parent 9247488 commit f0a140c
Showing 1 changed file with 2 additions and 14 deletions.
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

0 comments on commit f0a140c

Please sign in to comment.