2023-06-29 15:50:35 +00:00
|
|
|
name: Demo Job Summary, for Gradle builds
|
2022-05-28 02:03:47 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
|
|
|
|
env:
|
|
|
|
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
run-gradle-builds:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
2022-06-04 15:26:11 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-05-28 02:03:47 +00:00
|
|
|
- name: Build distribution
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
npm install
|
|
|
|
npm run build
|
|
|
|
- name: Setup Gradle
|
|
|
|
uses: ./
|
|
|
|
- name: Build kotlin-dsl project
|
|
|
|
working-directory: .github/workflow-samples/kotlin-dsl
|
|
|
|
run: ./gradlew assemble
|
2023-07-22 14:49:39 +00:00
|
|
|
- name: Build kotlin-dsl project without Build Scan®
|
2022-06-05 04:37:36 +00:00
|
|
|
working-directory: .github/workflow-samples/kotlin-dsl
|
2022-06-19 15:56:40 +00:00
|
|
|
run: ./gradlew assemble check --no-scan
|
2023-07-22 14:49:39 +00:00
|
|
|
- name: Build kotlin-dsl project with Build Scan® publish failure
|
2022-06-19 15:16:27 +00:00
|
|
|
working-directory: .github/workflow-samples/kotlin-dsl
|
|
|
|
run: ./gradlew check -Dgradle.enterprise.url=https://not.valid.server
|
2022-05-28 02:03:47 +00:00
|
|
|
- name: Build groovy-dsl project
|
|
|
|
working-directory: .github/workflow-samples/groovy-dsl
|
|
|
|
run: ./gradlew assemble
|
2022-06-05 04:53:36 +00:00
|
|
|
- name: Build kotlin-dsl project with multiple gradle invocations
|
2022-05-28 02:03:47 +00:00
|
|
|
working-directory: .github/workflow-samples/kotlin-dsl
|
|
|
|
run: |
|
|
|
|
./gradlew tasks --no-daemon
|
|
|
|
./gradlew help check
|
|
|
|
- name: Fail groovy-dsl project
|
|
|
|
working-directory: .github/workflow-samples/groovy-dsl
|
|
|
|
continue-on-error: true
|
|
|
|
run: ./gradlew not-a-real-task
|