Skip to content

Update dependency Atrea.PolicyEngine to v5 #613

Update dependency Atrea.PolicyEngine to v5

Update dependency Atrea.PolicyEngine to v5 #613

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 🔨 set up .net
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: 🧪 run tests
run: |
cd ./tests/BaroquenMelody.Library.Tests/
dotnet test --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
cp TestResults/*/coverage.opencover.xml .
cd ../BaroquenMelody.Infrastructure.Tests/
dotnet test --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
cp TestResults/*/coverage.opencover.xml .
- name: 💌 publish code coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: /home/runner/work/baroquen-melody/baroquen-melody/tests/BaroquenMelody.Library.Tests/coverage.opencover.xml,/home/runner/work/baroquen-melody/baroquen-melody/tests/BaroquenMelody.Infrastructure.Tests/coverage.opencover.xml
fail_ci_if_error: true