Merge pull request #289 from Kotlin-Android-Open-Source/renovate/all-… #948
  
    
      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: Unit Tests CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: [ '**.md', '**.MD' ] | |
| pull_request: | |
| branches: [ master ] | |
| paths-ignore: [ '**.md', '**.MD' ] | |
| workflow_dispatch: | |
| env: | |
| CI: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '21' | |
| - name: Cache gradle, wrapper and buildSrc | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ github.job }}- | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| - name: Run Android Debug Unit Test | |
| run: ./gradlew app:koverXmlReportDebug --warning-mode all --stacktrace | |
| - name: Upload Test Report | |
| uses: codecov/[email protected] | |
| with: | |
| files: ./app/build/reports/kover/reportDebug.xml | |
| fail_ci_if_error: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: true |