bed-and-breakfast/templates-open-source

View on GitHub
.github/workflows/coverage-report.yml

Summary

Maintainability
Test Coverage
name: Coverage Report
on:
    workflow_run:
        workflows:
            - CI
        types:
            - completed
jobs:
    report:
        name: Coverage Report
        runs-on: ubuntu-latest
        steps:
            - name: Get coverage artifacts
              uses: dawidd6/action-download-artifact@v2
              with:
                  workflow: ci.yml
                  name: test-coverage-lts
                  path: coverage
                  run_id: ${{ github.event.workflow_run.id }}
            - name: Create coverage report
              uses: 5monkeys/cobertura-action@master
              with:
                  report_name: Coverage Report
                  path: 'coverage/*.xml'
                  minimum_coverage: 100
                  fail_below_threshold: true
                  skip_covered: false
                  only_changed_files: false