Skip to content

History endpoints

History endpoints #41

Workflow file for this run

name: Check Drive Build & Test
on:
push:
branches: [ "master", "integration" ]
pull_request:
branches: [ "master", "integration" ]
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: dotnet restore
working-directory: CheckDrive.Api
- name: Build
run: dotnet build --no-restore
working-directory: CheckDrive.Api
- name: Test
run: dotnet test --no-build --verbosity normal --settings Tests/coverlet.runsettings
working-directory: CheckDrive.Api
- name: ReportGenerator
# You may pin to the exact commit or the version.
# uses: danielpalme/ReportGenerator-GitHub-Action@2a2d60ea1c7e811f54684179af6ac1ae8c1ce69a
uses: danielpalme/ReportGenerator-GitHub-Action@5.2.5
with:
reports: "**/*.cobertura.xml" # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported.
targetdir: "${{ github.workspace }}" # REQUIRED # The directory where the generated report should be saved.
reporttypes: 'HtmlInline;Cobertura'
- name: Publish Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: "Cobertura.xml"
badge: true
fail_below_min: false # just informative for now
format: markdown
hide_branch_rate: false
hide_complexity: false
indicators: true
output: both
thresholds: "10 30"
- name: Generate list using Markdown
run: |
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
- name: Upload Test Result Files
uses: actions/upload-artifact@v4
with:
name: test-results
path: ./*.html
retention-days: 5