Bump reviewdog/action-detect-secrets from 0.19.0 to 0.24.0 #184
Workflow file for this run
This file contains 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: 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 |