Skip to content

Bump gradle/actions from 3 to 4 #2888

Bump gradle/actions from 3 to 4

Bump gradle/actions from 3 to 4 #2888

name: Verify Gradle Data Capturing Samples
on:
push:
branches: [ main ]
paths: [ 'build-data-capturing-gradle-samples/**', '.github/workflows/**' ]
pull_request:
branches: [ main ]
paths: [ 'build-data-capturing-gradle-samples/**', '.github/workflows/**' ]
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: 'Git diffs'
sample-file: 'capture-git-diffs/gradle-git-diffs.gradle'
- name: 'Max parallel forks'
sample-file: 'capture-max-parallel-forks/gradle-max-parallel-forks.gradle'
- name: 'OS processes'
sample-file: 'capture-os-processes/gradle-os-processes.gradle'
- name: 'Processor arch'
sample-file: 'capture-processor-arch/gradle-processor-arch.gradle'
- name: 'Quality checks'
sample-file: 'capture-quality-check-issues/gradle-quality-check-issues.gradle'
- name: 'Slow tasks'
sample-file: 'capture-slow-workunit-executions/gradle-slow-task-executions.gradle'
- name: 'Test task system properties'
sample-file: 'capture-test-execution-system-properties/gradle-test-execution-system-properties.gradle'
- name: 'Test PTS support'
sample-file: 'capture-test-pts-support/gradle-test-pts-support.gradle'
- name: 'Thermal throttling'
sample-file: 'capture-thermal-throttling/gradle-thermal-throttling.gradle'
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