Workflow visualization #129
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: Build & Test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build&Test | |
run: dotnet test -f net8.0 -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover --no-restore --verbosity normal | |
- name: Create Test Coverage Badge | |
uses: simon-k/[email protected] | |
id: create_coverage_badge | |
with: | |
label: coverage | |
color: brightgreen | |
path: tests/PowerPipe.UnitTests/TestResults/coverage.net8.0.opencover.xml | |
gist-filename: code-coverage.json | |
gist-id: 87b833b49852f7f088e1d4d913600a91 | |
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }} |