Update plugin com.gradle.develocity to v3.19 #51
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: Check | |
on: | |
pull_request | |
jobs: | |
danger: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Danger | |
uses: danger/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
assemble: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version-file: .ci-java-version | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: wrapper | |
- name: Run assemble task | |
run: ./gradlew assemble | |
detekt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version-file: .ci-java-version | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: wrapper | |
- name: Run detekt | |
run: ./gradlew detektAll | |
ktlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run ktlint | |
run: ./format --no-format | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version-file: .ci-java-version | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: wrapper | |
- name: Run Android lint | |
run: ./gradlew lintRelease | |
instrumentation_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
# Allow tests to continue on other devices if they fail on one device. | |
fail-fast: false | |
matrix: | |
api-level: [ 22, 26, 30, 35 ] | |
shard: [ 0, 1 ] # Need to update shard-count below if this changes | |
env: | |
TERM: dumb | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version-file: .ci-java-version | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: wrapper | |
- name: Enable KVM | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
# Determine what emulator image to use. We run all API 28+ emulators using | |
# the google_apis image | |
- name: Determine emulator target | |
id: determine-target | |
env: | |
API_LEVEL: ${{ matrix.api-level }} | |
run: | | |
TARGET="default" | |
if [ "$API_LEVEL" -ge "28" ]; then | |
TARGET="google_apis" | |
fi | |
echo "TARGET=$TARGET" >> $GITHUB_OUTPUT | |
- name: Determine emulator arch | |
id: determine-arch | |
env: | |
API_LEVEL: ${{ matrix.api-level }} | |
run: | | |
ARCH="x86" | |
if [ "$API_LEVEL" -ge "29" ]; then | |
ARCH="x86_64" | |
fi | |
echo "ARCH=$ARCH" >> $GITHUB_OUTPUT | |
- name: Configure ADB log file | |
run: adb logcat >logcat.txt & | |
- name: Run tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: ${{ matrix.api-level }} | |
arch: ${{ steps.determine-arch.outputs.ARCH }} | |
target: ${{ steps.determine-target.outputs.TARGET }} | |
profile: Galaxy Nexus | |
script: ./gradlew connectedCheck -Pandroid.testInstrumentationRunnerArguments.numShards=2 -Pandroid.testInstrumentationRunnerArguments.shardIndex=${{ matrix.shard }} --scan --continue --no-configuration-cache --stacktrace | |
- name: Upload logs | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: logs-${{ matrix.api-level }}-${{ steps.determine-target.outputs.TARGET }}-${{ matrix.shard }} | |
path: logcat.txt | |
- name: Upload test results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results-${{ matrix.api-level }}-${{ steps.determine-target.outputs.TARGET }}-${{ matrix.shard }} | |
path: | | |
**/build/reports/* | |
**/build/outputs/*/connected/* | |
env: | |
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx16g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=1024m" |