Update kotlin monorepo to v2.1.0 #179
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: Code Analysis | |
on: | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
detekt: | |
runs-on: ubuntu-latest | |
env: | |
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Decode google-services.json | |
run: echo "$GOOGLE_SERVICES_JSON" | base64 --decode > app/google-services.json | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
- name: Run Detekt | |
run: ./gradlew detekt | |
- name: Run Ktlint | |
run: ./gradlew ktlintCheck | |
- name: Run tests and generate Aggregated JaCoCo report | |
run: ./gradlew test jacocoAggregatedReport | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./build/reports/jacoco/jacocoAggregatedReport/jacocoTestReport.xml | |
fail_ci_if_error: true |