Skip to content

Merge pull request #21 from mizrael/dependabot/nuget/tests/EvenireDB.… #58

Merge pull request #21 from mizrael/dependabot/nuget/tests/EvenireDB.…

Merge pull request #21 from mizrael/dependabot/nuget/tests/EvenireDB.… #58

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: |
cd ./src
dotnet restore
- name: Build
run: |
cd ./src
dotnet build --no-restore
- name: Test
run: |
cd ./src
dotnet test --no-build -m:1 -s ../tests/tests.runsettings \
/p:CollectCoverage=true \
/p:CoverletOutput=../TestResults/ \
/p:MergeWith="../TestResults/coverage.json" \
/p:CoverletOutputFormat=\"opencover,json\"
- name: Create Test Coverage Badge
uses: simon-k/[email protected]
id: create_coverage_badge
with:
label: Unit Test Coverage
color: brightgreen
path: ./tests/TestResults/coverage.opencover.xml
gist-filename: eveniredb-code-coverage.json
gist-id: ebd585c5ad0069d0e8486e43cade5793
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }}