Bump com.google.devtools.ksp from 1.9.21-1.0.16 to 1.9.22-1.0.17 #535
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: CI | |
'on': | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
inputs: | |
runAndroidTests: | |
description: Run Android Tests | |
required: true | |
default: false | |
type: boolean | |
permissions: | |
contents: write | |
security-events: write | |
env: | |
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: '17' | |
- name: Create Google Services JSON | |
run: | | |
mkdir ${{ github.workspace }}/app/src/prod | |
echo $GOOGLE_SERVICES_JSON | base64 -di > ${{ github.workspace }}/app/src/prod/google-services.json | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: java | |
- name: Build APK | |
uses: gradle/gradle-build-action@v2.11.1 | |
with: | |
dependency-graph: generate-and-submit | |
arguments: ':app:assembleProdDebug' | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: '17' | |
- name: Create Google Services JSON | |
run: | | |
mkdir ${{ github.workspace }}/app/src/prod | |
echo $GOOGLE_SERVICES_JSON | base64 -di > ${{ github.workspace }}/app/src/prod/google-services.json | |
- name: Lint | |
uses: gradle/gradle-build-action@v2.11.1 | |
with: | |
arguments: lint | |
- name: Uploading lint results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: lint-reports | |
path: '**/lint-results-*.html' | |
detekt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: '17' | |
- name: Create Google Services JSON | |
run: | | |
mkdir ${{ github.workspace }}/app/src/prod | |
echo $GOOGLE_SERVICES_JSON | base64 -di > ${{ github.workspace }}/app/src/prod/google-services.json | |
- name: Detekt | |
uses: gradle/gradle-build-action@v2.11.1 | |
with: | |
arguments: detektProdDebug | |
- name: Uploading detekt results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: detekt-reports | |
path: '**/detekt.html' | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: '17' | |
- name: Create Google Services JSON | |
run: | | |
mkdir ${{ github.workspace }}/app/src/prod | |
echo $GOOGLE_SERVICES_JSON | base64 -di > ${{ github.workspace }}/app/src/prod/google-services.json | |
- name: Unit test and coverage | |
uses: gradle/gradle-build-action@v2.11.1 | |
with: | |
arguments: koverHtmlReport | |
- name: Uploading test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-reports | |
path: '**/reports/tests/testProdDebugUnitTest/' | |
- name: Uploading test coverage | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-coverage-report | |
path: '**/reports/coverage/' | |
android-test: | |
needs: build | |
if: '${{ inputs.runAndroidTests }}' | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: '17' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3.2.0 | |
- name: Create Google Services JSON | |
run: | | |
mkdir ${{ github.workspace }}/app/src/prod | |
echo $GOOGLE_SERVICES_JSON | base64 -d > ${{ github.workspace }}/app/src/prod/google-services.json | |
- name: Build AndroidTest app | |
uses: gradle/gradle-build-action@v2.11.1 | |
with: | |
arguments: packageProdDebug | |
- name: Run Instrumented Tests on GMD | |
run: | | |
./gradlew cleanManagedDevices --unused-only | |
./gradlew pixel2api30ProdDebugAndroidTest -Dorg.gradle.daemon=false -Dorg.gradle.workers.max=1 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" | |
- name: Upload Android test reports | |
uses: actions/upload-artifact@v4 | |
with: | |
name: android-test-reports | |
path: '**/build/reports/androidTests' |