Unverified Commit 7e85212f authored by Daz DeBoer's avatar Daz DeBoer
Browse files

Add workflow with several Gradle builds to demo job summary

parent 992ccebe
Loading
Loading
Loading
Loading
+13 −1
Changes for .github/workflow-samples/groovy-dsl/settings.gradle: 13 added lines, 1 removed line.
Original line number Diff line number Diff line
rootProject.name = 'basic'
plugins {
    id "com.gradle.enterprise" version "3.10.1"
}

gradleEnterprise {
    buildScan {
        termsOfServiceUrl = "https://gradle.com/terms-of-service"
        termsOfServiceAgree = "yes"
        publishAlways()
        uploadInBackground = false
    }
}
rootProject.name = 'groovy-dsl'
+37
Changes for .github/workflows/demo-job-summary.yml: 37 added lines, 0 removed lines.
Original line number Diff line number Diff line
name: Demo Job Summary for Gradle builds

on:
  workflow_dispatch:
  push:

env:
  GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true

jobs:
  run-gradle-builds:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout sources
      uses: actions/checkout@v2
    - 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
    - name: Build groovy-dsl project
      working-directory: .github/workflow-samples/groovy-dsl
      run: ./gradlew assemble
    - name: Build kotlin-dsl project again
      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