fix(deps): update dependency androidx.lifecycle:lifecycle-runtime-ktx to v2.6.2 - autoclosed #726
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: Android CI | |
on: pull_request | |
concurrency: | |
group: ${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
check-codestyle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3.5.3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v3.12.0 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
cache: 'gradle' | |
- name: Check codestyle | |
uses: gradle/gradle-build-action@v2.4.2 | |
with: | |
arguments: --no-configuration-cache spotlessCheck | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3.5.3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v3.12.0 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
cache: 'gradle' | |
- name: Run unit tests | |
uses: gradle/gradle-build-action@v2.4.2 | |
with: | |
arguments: --no-configuration-cache test | |
- name: (Fail-only) Upload test report | |
if: failure() | |
uses: actions/upload-artifact@v3.1.2 | |
with: | |
name: Test report | |
path: app/build/reports | |
build-apks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3.5.3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v3.12.0 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
cache: 'gradle' | |
- name: Build debug APKs | |
uses: gradle/gradle-build-action@v2.4.2 | |
with: | |
arguments: --no-configuration-cache assembleDebug | |
lint-debug: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3.5.3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v3.12.0 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
cache: 'gradle' | |
- name: Run Lint on debug variants | |
uses: gradle/gradle-build-action@v2.4.2 | |
with: | |
arguments: --no-configuration-cache lintDebug | |
code-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3.5.3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v3.12.0 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
cache: 'gradle' | |
- name: Generate coverage reports with kotlinx-kover | |
uses: gradle/gradle-build-action@v2.4.2 | |
with: | |
arguments: --no-configuration-cache koverXmlReport | |
- name: Export coverage XMLs | |
id: coverage-export | |
shell: bash | |
run: | | |
REPORTS="$(find ./build/coverage-reports/ -maxdepth 1 -type f -printf "${GITHUB_WORKSPACE}/%p," -name "*.xml")" | |
REPORTS="${REPORTS::${#REPORTS}-1}" | |
echo ::set-output name=REPORT_PATHS::${REPORTS} | |
- name: Publish JaCoCo report to PR | |
if: false | |
uses: madrapps/jacoco-report@v1.5 | |
with: | |
paths: ${{ steps.coverage-export.outputs.REPORT_PATHS }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 0 | |
min-coverage-changed-files: 40 | |
title: Code Coverage |