Verify Gradle Data Capturing Samples #2876
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: Verify Gradle Data Capturing Samples | |
on: | |
push: | |
branches: [ main ] | |
paths: [ 'build-data-capturing-gradle-samples/**' ] | |
pull_request: | |
branches: [ main ] | |
paths: [ 'build-data-capturing-gradle-samples/**' ] | |
workflow_dispatch: | |
jobs: | |
verification: | |
name: Verification of ${{ matrix.name }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- name: 'Develocity Gradle plugin version' | |
sample-file: 'capture-develocity-plugin-version/gradle-develocity-plugin-version.gradle' | |
- name: 'Develocity Gradle plugin version (Kotlin DSL)' | |
sample-file: 'capture-develocity-plugin-version/gradle-develocity-plugin-version.gradle.kts' | |
- name: 'Git diffs' | |
sample-file: 'capture-git-diffs/gradle-git-diffs.gradle' | |
- name: 'Git diffs (Kotlin DSL)' | |
sample-file: 'capture-git-diffs/gradle-git-diffs.gradle.kts' | |
- name: 'Max parallel forks' | |
sample-file: 'capture-max-parallel-forks/gradle-max-parallel-forks.gradle' | |
- name: 'Max parallel forks (Kotlin DSL)' | |
sample-file: 'capture-max-parallel-forks/gradle-max-parallel-forks.gradle.kts' | |
- name: 'OS processes' | |
sample-file: 'capture-os-processes/gradle-os-processes.gradle' | |
- name: 'OS processes (Kotlin DSL)' | |
sample-file: 'capture-os-processes/gradle-os-processes.gradle.kts' | |
- name: 'Processor arch' | |
sample-file: 'capture-processor-arch/gradle-processor-arch.gradle' | |
- name: 'Processor arch (Kotlin DSL)' | |
sample-file: 'capture-processor-arch/gradle-processor-arch.gradle.kts' | |
- name: 'Quality checks' | |
sample-file: 'capture-quality-check-issues/gradle-quality-check-issues.gradle' | |
- name: 'Quality checks (Kotlin DSL)' | |
sample-file: 'capture-quality-check-issues/gradle-quality-check-issues.gradle.kts' | |
- name: 'Slow tasks' | |
sample-file: 'capture-slow-workunit-executions/gradle-slow-task-executions.gradle' | |
- name: 'Slow tasks (Kotlin DSL)' | |
sample-file: 'capture-slow-workunit-executions/gradle-slow-task-executions.gradle.kts' | |
- name: 'Test task system properties' | |
sample-file: 'capture-test-execution-system-properties/gradle-test-execution-system-properties.gradle' | |
- name: 'Test task system properties (Kotlin DSL)' | |
sample-file: 'capture-test-execution-system-properties/gradle-test-execution-system-properties.gradle.kts' | |
- name: 'Test PTS support' | |
sample-file: 'capture-test-pts-support/gradle-test-pts-support.gradle' | |
- name: 'Test PTS support (Kotlin DSL)' | |
sample-file: 'capture-test-pts-support/gradle-test-pts-support.gradle.kts' | |
- name: 'Thermal throttling' | |
sample-file: 'capture-thermal-throttling/gradle-thermal-throttling.gradle' | |
- name: 'Thermal throttling (Kotlin DSL)' | |
sample-file: 'capture-thermal-throttling/gradle-thermal-throttling.gradle.kts' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} | |
- name: Inject data capture script into Gradle build using Groovy DSL | |
working-directory: common-develocity-gradle-configuration-groovy | |
run: | | |
# apply sample file | |
echo "apply from: file(\"../build-data-capturing-gradle-samples/${{matrix.sample-file}}\")" >> build.gradle | |
- name: Run Gradle build using Groovy DSL | |
working-directory: common-develocity-gradle-configuration-groovy | |
run: ./gradlew tasks -Ddevelocity.url=https://ge.solutions-team.gradle.com | |
- name: Inject data capture script into Gradle build using Kotlin DSL | |
working-directory: common-develocity-gradle-configuration-kotlin | |
run: | | |
# apply sample file | |
echo "apply(from = \"../build-data-capturing-gradle-samples/${{matrix.sample-file}}.kts\")" >> build.gradle.kts | |
- name: Run Gradle build using Kotlin DSL | |
working-directory: common-develocity-gradle-configuration-kotlin | |
run: ./gradlew tasks -Ddevelocity.url=https://ge.solutions-team.gradle.com |