actions/.github/workflows/integ-test-inject-develocity.yml

65 lines
1.9 KiB
YAML
Raw Normal View History

name: Test develocity injection
2023-08-20 20:56:16 +00:00
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
runner-os:
type: string
default: '["ubuntu-latest", "windows-latest", "macos-latest"]'
skip-dist:
type: boolean
default: false
secrets:
DEVELOCITY_ACCESS_KEY:
required: true
2023-08-20 20:56:16 +00:00
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: inject-develocity-${{ inputs.cache-key-prefix }}
2023-08-20 20:56:16 +00:00
jobs:
inject-develocity:
env:
DEVELOCITY_INJECTION_ENABLED: true
DEVELOCITY_URL: https://ge.solutions-team.gradle.com
DEVELOCITY_PLUGIN_VERSION: ${{ matrix.plugin-version }}
2024-04-08 00:30:45 +00:00
DEVELOCITY_CCUD_PLUGIN_VERSION: '2.0'
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} # required to test against GE plugin 3.16.2
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
2023-08-20 20:56:16 +00:00
strategy:
2024-04-09 22:02:24 +00:00
fail-fast: false
2023-08-20 20:56:16 +00:00
matrix:
gradle: [current, 7.6.2, 6.9.4, 5.6.4]
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [3.16.2, 3.17.3]
runs-on: ${{ matrix.os }}
2023-08-20 20:56:16 +00:00
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
2023-08-20 20:56:16 +00:00
- name: Setup Java
uses: actions/setup-java@v4
2023-08-20 20:56:16 +00:00
with:
distribution: temurin
java-version: 11
2023-08-20 20:56:16 +00:00
- name: Setup Gradle
id: setup-gradle
uses: ./setup-gradle
2023-08-20 20:56:16 +00:00
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
gradle-version: ${{ matrix.gradle }}
- name: Run Gradle build
id: gradle
working-directory: .github/workflow-samples/no-ge
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@v7
2023-08-20 20:56:16 +00:00
with:
script: |
core.setFailed('No Build Scan detected')