Skip to content

Bump org.junit:junit-bom from 5.10.3 to 5.11.1 (#86) #220

Bump org.junit:junit-bom from 5.10.3 to 5.11.1 (#86)

Bump org.junit:junit-bom from 5.10.3 to 5.11.1 (#86) #220

Workflow file for this run

name: build
on:
pull_request:
paths-ignore:
- '**/*.md'
push:
branches:
- 'main'
paths-ignore:
- '**/*.md'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
CI: true
TERM: dumb
GRADLE_OPTS: >-
-Dorg.gradle.jvmargs="-Xmx1G -XX:MaxMetaspaceSize=768M -XX:SoftRefLRUPolicyMSPerMB=10 -XX:+UseParallelGC"
-Dorg.gradle.dependency.verification.console=verbose
KOTLIN_DAEMON_JVMARGS: >-
-Xmx512M -XX:MaxMetaspaceSize=320M -XX:SoftRefLRUPolicyMSPerMB=10 -XX:+UseParallelGC -XX:NewRatio=1
ORG_GRADLE_PROJECT_verboseTest: true
permissions:
checks: write
pull-requests: write
jobs:
assemble:
name: Assemble, run tests
runs-on: ubuntu-latest
timeout-minutes: 60
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '22'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GradleEncryptionKey }}
dependency-graph: generate
- name: Assemble debug build, run tests
run: >
./gradlew -Pkotlin.daemon.jvmargs="${{ env.KOTLIN_DAEMON_JVMARGS }}"
build publishAllPublicationsToTestRepository --stacktrace --scan
- name: Build samples
run: >
./gradlew -Pkotlin.daemon.jvmargs="${{ env.KOTLIN_DAEMON_JVMARGS }}"
-p samples build --stacktrace --scan
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ !cancelled() && (github.actor != 'dependabot[bot]') }}
with:
comment_mode: off
junit_files: '**/build/test-results/**/*.xml'
check_name: "Test results"
- name: Bundle the test reports
if: failure()
run: >
find . \(
-name .idea -o -path '*build/intermediates' -o -path '*build/.transforms' -o -path '*build/generated'
\) -prune -o
-type d -name 'reports' -print0
| xargs -0 tar -c -I 'zstd -19 -T0' -f test-reports.tar.zst
- name: Bundle local plugin repository
run: >
tar -c -I 'zstd -19 -T0' -f local-plugin-repository.tar.zst build/local-plugin-repository
- name: Upload test reports
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports
path: test-reports.tar.zst
- name: Upload local plugin repository
uses: actions/upload-artifact@v4
with:
name: local-plugin-repository
path: local-plugin-repository.tar.zst
functional-tests:
name: Run functional matrix tests
runs-on: ubuntu-latest
timeout-minutes: 60
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
strategy:
fail-fast: false
matrix:
include:
# AGP 8.6.0-beta01
- gradle: 8.9
agp: 8.6.0-beta01
jdk: 22
- gradle: 8.8
agp: 8.6.0-beta01
jdk: 21
# AGP 8.5.0
- gradle: 8.9
agp: 8.5.0
jdk: 22
- gradle: 8.8
agp: 8.5.0
jdk: 21
- gradle: 8.7
agp: 8.5.0
jdk: 21
# AGP 8.4.2
- gradle: 8.9
agp: 8.4.2
jdk: 21
- gradle: 8.8
agp: 8.4.2
jdk: 21
- gradle: 8.7
agp: 8.4.2
jdk: 21
- gradle: 8.6
agp: 8.4.2
jdk: 21
# AGP 8.3.2
- gradle: 8.9
agp: 8.3.2
jdk: 21
- gradle: 8.8
agp: 8.3.2
jdk: 21
- gradle: 8.7
agp: 8.3.2
jdk: 21
- gradle: 8.6
agp: 8.3.2
jdk: 21
- gradle: 8.5
agp: 8.3.2
jdk: 21
- gradle: 8.4
agp: 8.3.2
jdk: 17
# AGP 8.2.2
- gradle: 8.9
agp: 8.2.2
- gradle: 8.8
agp: 8.2.2
- gradle: 8.7
agp: 8.2.2
- gradle: 8.6
agp: 8.2.2
- gradle: 8.5
agp: 8.2.2
- gradle: 8.4
agp: 8.2.2
- gradle: 8.3
agp: 8.2.2
- gradle: 8.2.1
agp: 8.2.2
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '22'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GradleEncryptionKey }}
- name: Assemble debug build, run matrix tests
env:
GRADLE_VERSION: ${{ matrix.gradle }}
AGP_VERSION: ${{ matrix.agp }}
TEST_JDK_VERSION: ${{ matrix.jdk || '17' }}
run: >
./gradlew -Pkotlin.daemon.jvmargs="${{ env.KOTLIN_DAEMON_JVMARGS }}"
functionalMatrixTest --stacktrace
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ !cancelled() && (github.actor != 'dependabot[bot]') }}
with:
comment_mode: off
junit_files: '**/build/test-results/**/*.xml'
check_name: ${{ format('Test results - {0}, {1}, {2}', matrix.gradle, matrix.agp, matrix.jdk || '') }}
- name: Bundle the test reports
if: failure()
run: >
find . \(
-name .idea -o -path '*build/intermediates' -o -path '*build/.transforms' -o -path '*build/generated'
\) -prune -o
-type d -name 'reports' -print0
| xargs -0 tar -c -I 'zstd -19 -T0' -f test-reports.tar.zst
- name: Upload test reports
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports
path: test-reports.tar.zst
static-analysis:
name: Style check
runs-on: ubuntu-latest
permissions:
security-events: write
timeout-minutes: 60
if: >-
!contains(github.event.head_commit.message, '[ci skip]')
&& github.actor != 'dependabot[bot]'
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '22'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GradleEncryptionKey }}
dependency-graph: generate
- name: Run static code analyzers
run: >
./gradlew -Pkotlin.daemon.jvmargs="${{ env.KOTLIN_DAEMON_JVMARGS }}"
styleCheck --continue
- name: Uploads Detekt .sarif files to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ./build/reports/detekt/report.sarif
category: detekt
- name: Uploads Diktat .sarif files to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ./build/reports/diktat/diktat.sarif
category: diktat
- name: Bundle the build report
if: ${{ !cancelled() }}
run: >
tar -c -I 'zstd -19 -T0' -f lint-outputs.tar.zst build/reports
- name: Upload lint outputs
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: lint-outputs
path: lint-outputs.tar.zst