Skip to content

Commit 980dc23

Browse files
authored
housekeeping: use bash uploader (#156)
1 parent bf7c51e commit 980dc23

File tree

2 files changed

+14
-27
lines changed

2 files changed

+14
-27
lines changed

.github/CODEOWNERS

-9
This file was deleted.

.github/workflows/ci-build.yml

+14-18
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ jobs:
2727
with:
2828
dotnet-version: 3.1.x
2929

30-
- name: Use Node.js
31-
uses: actions/setup-node@v1
32-
with:
33-
node-version: '12.x'
34-
3530
- name: NBGV
3631
id: nbgv
3732
uses: dotnet/nbgv@master
@@ -49,24 +44,25 @@ jobs:
4944
run: msbuild /t:build,pack /maxcpucount /p:NoPackageAnalysis=true /verbosity:minimal /p:Configuration=${{ env.configuration }}
5045
working-directory: src
5146

52-
- name: Install Report Generator
53-
run: dotnet tool install --global dotnet-reportgenerator-globaltool
54-
55-
- name: Run Unit Tests
56-
run: dotnet test --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput="../../artifacts/coverage/coverage.xml" /p:Include="[${{ env.productNamespacePrefix}}*]*" /p:Exclude="[${{ env.productNamespacePrefix}}*Tests.*]*"
57-
working-directory: src
58-
59-
- name: Generate Coverage Report
60-
run: reportgenerator -reports:"coverage.*.xml" -targetdir:report-output
61-
working-directory: artifacts/coverage
47+
- name: Run Unit Tests and Generate Coverage
48+
uses: glennawatson/coverlet-msbuild@v1
49+
with:
50+
project-files: '**/*Tests*.csproj'
51+
no-build: true
52+
exclude-filter: '[${{env.productNamespacePrefix}}.*.Tests.*]*'
53+
include-filter: '[${{env.productNamespacePrefix}}*]*'
54+
output-format: cobertura
55+
output: '../../artifacts/'
56+
configuration: ${{ env.configuration }}
6257

6358
- name: Upload Code Coverage
59+
shell: bash
6460
run: |
65-
npm install -g codecov
66-
codecov
67-
working-directory: artifacts/coverage
61+
echo $PWD
62+
bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy -t ${{ env.CODECOV_TOKEN }} -s '$PWD/artifacts' -f '*.xml'
6863
env:
6964
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
65+
7066
- name: Create NuGet Artifacts
7167
uses: actions/upload-artifact@master
7268
with:

0 commit comments

Comments
 (0)