Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #129

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #129

Workflow file for this run

name: .NET (CI)
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
sdk: [6.x]
dotnetFramework: [net6.0]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.sdk }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: |
dotnet test -f ${{ matrix.dotnetFramework }} --no-build --verbosity normal \
/p:CollectCoverage=true \
/p:CoverletOutputFormat=opencover \
/p:CoverletOutput=opencovertests.xml \
/p:Exclude=[xunit*]* \
# --% \
# /p:ExcludeByAttribute=\"GeneratedCodeAttribute,CompilerGeneratedAttribute,TestSDKAutoGeneratedCode\"
- name: Upload Coverage Report
uses: actions/[email protected]
with:
name: code-coverage-report
# A file, directory or wildcard pattern that describes what to upload
path: |
**/opencovertests.xml
codeQuality:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Coverage Report
uses: actions/[email protected]
with:
name: code-coverage-report
- name: Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_KEY}}
files: |
**/opencovertests.xml