v1.0-RC Readiness #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Coverage | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| coverage: | |
| name: Scoverage + Codecov | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 (with SBT cache) | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: 'sbt' | |
| - name: Run coverage with per-module thresholds | |
| run: | | |
| sbt -batch \ | |
| "set core / coverageMinimumStmtTotal := 80" \ | |
| "set core / coverageMinimumBranchTotal := 75" \ | |
| "set core / coverageFailOnMinimum := true" \ | |
| "set infrastructure / coverageMinimumStmtTotal := 70" \ | |
| "set infrastructure / coverageMinimumBranchTotal := 65" \ | |
| "set infrastructure / coverageFailOnMinimum := true" \ | |
| "set connectors / coverageMinimumStmtTotal := 70" \ | |
| "set connectors / coverageFailOnMinimum := true" \ | |
| "set enginesSpark / coverageMinimumStmtTotal := 60" \ | |
| "set enginesSpark / coverageFailOnMinimum := false" \ | |
| "set qualityDeequ / coverageMinimumStmtTotal := 60" \ | |
| "set qualityDeequ / coverageFailOnMinimum := false" \ | |
| clean coverage test coverageReport coverageAggregate | |
| - name: Upload coverage to Codecov | |
| if: ${{ !env.ACT }} | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: ./target/scala-2.13/scoverage-report/scoverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| verbose: true |