Skip to content

Test with AGP 8.7.0-alpha08. #514

Test with AGP 8.7.0-alpha08.

Test with AGP 8.7.0-alpha08. #514

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'
push:
branches:
- main
paths-ignore:
- '**/*.md'
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx4g -XX:+HeapDumpOnOutOfMemoryError"
TERM: dumb
jobs:
assemble:
name: Assemble
runs-on: ubuntu-latest
env:
JAVA_TOOL_OPTIONS: -Xmx4g -XX:+UseParallelGC
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '22'
- uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Assemble
run: ./gradlew assemble
checks:
name: Checks (unit tests, static analysis, plugin validations and binary compatibility API check)
runs-on: ubuntu-latest
env:
JAVA_TOOL_OPTIONS: -Xmx4g -XX:+UseParallelGC
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '22'
- uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Checks
run: ./gradlew test detekt validatePlugins apiCheck
functional-tests:
name: Functional tests
runs-on: ubuntu-latest
env:
JAVA_TOOL_OPTIONS: -Xmx4g -XX:+UseParallelGC
AGP_VERSION: ${{ matrix.agp-version }}
strategy:
matrix:
agp-version: [ 7.3.1, 7.4.2, 8.0.2, 8.1.4, 8.2.2, 8.3.2, 8.4.2, 8.5.2, 8.6.0-rc01, 8.7.0-alpha08 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '22'
- name: Configure git user
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
- uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Functional tests
run: ./gradlew functionalTest
- name: Upload test reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports-${{ matrix.agp-version }}
path: build/reports/tests/functionalTest
retention-days: 3
deploy-snapshot:
name: Deploy snapshot
needs: [assemble, checks, functional-tests]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
env:
JAVA_TOOL_OPTIONS: -Xmx4g -XX:+UseParallelGC
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '22'
- uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Deploy snapshot
run: ./gradlew publish