mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-31 01:50:01 +08:00 
			
		
		
		
	 5203a0b09d
			
		
	
	
		5203a0b09d
		
			
		
	
	
	
	
		
			
			When enabled, the configuration-cache will cause the build to fail when a `buildFinished` listener is added. Instead, use a BuildService to listen for task failures and to write the results on build completion.
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| 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@v3
 | |
|     - 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 kotlin-dsl project without build scan
 | |
|       working-directory: .github/workflow-samples/kotlin-dsl
 | |
|       run: ./gradlew check --no-scan
 | |
|     - name: Build groovy-dsl project
 | |
|       working-directory: .github/workflow-samples/groovy-dsl
 | |
|       run: ./gradlew assemble
 | |
|     - name: Build kotlin-dsl project with multiple gradle invocations
 | |
|       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
 |