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

housekeeping: use bash uploader #156

Merged
merged 11 commits into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from 4 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
9 changes: 0 additions & 9 deletions .github/CODEOWNERS

This file was deleted.

27 changes: 13 additions & 14 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
with:
dotnet-version: 3.1.x

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: NBGV
id: nbgv
uses: dotnet/nbgv@master
Expand All @@ -52,21 +47,25 @@ jobs:
- name: Install Report Generator
run: dotnet tool install --global dotnet-reportgenerator-globaltool

- name: Run Unit Tests
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.*]*"
working-directory: src

- name: Generate Coverage Report
run: reportgenerator -reports:"coverage.*.xml" -targetdir:report-output
working-directory: artifacts/coverage
- name: Run Unit Tests and Generate Coverage
uses: glennawatson/coverlet-msbuild@v1
with:
project-files: '**/*Tests*.csproj'
no-build: true
exclude-filter: '[${{env.productNamespacePrefix}}.*.Tests.*]*'
include-filter: '[${{env.productNamespacePrefix}}*]*'
output-format: opencover
output: '../../artifacts/coverage/'
configuration: ${{ env.configuration }}

- name: Upload Code Coverage
shell: bash
run: |
npm install -g codecov
codecov
working-directory: artifacts/coverage
bash <(curl -s https://codecov.io/bash) -s ./artfacts/coverage/*.xml -t ${{ env.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Create NuGet Artifacts
uses: actions/upload-artifact@master
with:
Expand Down