Merge pull request #1983 from PaulWoitaschek/renovate/kotlin-compose-ksp #291
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: | |
branches: | |
- main | |
env: | |
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -XX:MaxMetaspaceSize=1g -Xms512m -XX:+HeapDumpOnOutOfMemoryError" | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v3.11.0 | |
with: | |
distribution: 'zulu' | |
java-version: 19 | |
- run: ./gradlew testDebugUnitTest | |
- run: ./gradlew lintKotlin | |
- run: ./gradlew app:lintDebug | |
- run: ./gradlew app:assembleDebug | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: "Artifacts" | |
path: | | |
artifacts/ | |
app/build/reports/*.html | |
app/build/outputs/apk/debug/app-debug.apk | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v3 | |
if: always() | |
with: | |
report_paths: '**/test-results/**/TEST-*.xml' |