6 #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
- push | |
- workflow_dispatch | |
jobs: | |
Build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install CodeCov | |
run: dotnet tool install -g codecov.tool | |
- name: Setup GitHub NuGet feed | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: dotnet nuget update source "ReportPortal GitHub" --username reportportal --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text | |
- name: Build | |
run: dotnet build | |
- name: Pack | |
run: dotnet pack --property:PackageOutputPath=../../pkgs | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pkgs | |
path: | | |
./pkgs/*.nupkg | |
./pkgs/*.snupkg | |
- name: Test | |
run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=OpenCover /p:CoverletOutput=./Coverage.xml | |
- name: Publish Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: '**/*/Coverage.*.xml' | |