Skip to content

build(deps): bump xunit.runner.visualstudio from 2.5.3 to 3.0.1 in /projects #270

build(deps): bump xunit.runner.visualstudio from 2.5.3 to 3.0.1 in /projects

build(deps): bump xunit.runner.visualstudio from 2.5.3 to 3.0.1 in /projects #270

Workflow file for this run

name: VRDR Testing
on:
push:
branches:
- main
- Natality-feature
- fetal-death-feature
paths:
- 'projects/VRDR/**'
- 'projects/VRDR.CLI/**'
- 'projects/VRDR.Client/**'
- 'projects/VRDR.Filter/**'
- 'projects/VRDR.Messaging/**'
- 'projects/VRDR.Tests/**'
pull_request:
branches:
- main
- Natality-feature
- fetal-death-feature
paths:
- 'projects/VRDR/**'
- 'projects/VRDR.CLI/**'
- 'projects/VRDR.Client/**'
- 'projects/VRDR.Filter/**'
- 'projects/VRDR.Messaging/**'
- 'projects/VRDR.Tests/**'
- ".github/workflows/vrdr-test.yml"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./projects
strategy:
matrix:
dotnet-version: [6.0.100]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore vrdr-dotnet.sln
- name: Build
run: dotnet build vrdr-dotnet.sln --configuration Release --no-restore
- name: Test
run: ./VRDR.Tests/run_tests.sh
coverage:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./projects
strategy:
matrix:
dotnet-version: [6.0.100]
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore vrdr-dotnet.sln
- name: Build
run: dotnet build vrdr-dotnet.sln --configuration Release --no-restore
- name: Test
run: dotnet test vrdr-dotnet.sln --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: projects/coverage/**/coverage.cobertura.xml
badge: true
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '50 75'
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md