Skip to content

Bump codecov/codecov-action from 4.3.0 to 4.4.1 #176

Bump codecov/codecov-action from 4.3.0 to 4.4.1

Bump codecov/codecov-action from 4.3.0 to 4.4.1 #176

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
workflow_call:
jobs:
unit_test:
name: Run Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 17
- name: Cache Gradle Files
uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Run Unit Tests
run: ./gradlew scratchoff:testDebugUnitTest
- name: Evaluate Test Report
uses: mikepenz/[email protected]
if: always()
with:
report_paths: 'scratchoff/build/test-results/testDebugUnitTest/TEST-*.xml'
- name: Generate Coverage Report
run: ./gradlew scratchoff:koverXmlReportDebug --stacktrace
- name: Store Coverage Artifact
uses: actions/[email protected]
with:
name: Test-Coverage
path: scratchoff/build/reports/kover/reportDebug.xml
report_test_coverage:
needs: unit_test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
name: Test-Coverage
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: reportDebug.xml
flags: unit
fail_ci_if_error: true
verbose: true