mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-31 18:10:00 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: CI-init-script-check
 | |
| 
 | |
| on:
 | |
|   push:
 | |
|     branches:
 | |
|     - 'main'
 | |
|     - 'release/**'
 | |
|     paths-ignore:
 | |
|     - 'dist/**'
 | |
|   pull_request:
 | |
|     paths:
 | |
|       - '.github/workflows/ci-init-script-check.yml'
 | |
|       - 'sources/src/resources/init-scripts/**'
 | |
|       - 'sources/test/init-scripts/**'
 | |
|   workflow_dispatch:
 | |
| 
 | |
| permissions:
 | |
|   contents: read
 | |
| 
 | |
| jobs:
 | |
|   test-init-scripts:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|     - name: Checkout sources
 | |
|       uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
 | |
|     - name: Setup Java
 | |
|       uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
 | |
|       with:
 | |
|         distribution: temurin
 | |
|         java-version: 17
 | |
|     - name: Setup Gradle
 | |
|       # Use a released version to avoid breakages
 | |
|       uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
 | |
|       env:
 | |
|         ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
 | |
|     - name: Run integration tests
 | |
|       working-directory: sources/test/init-scripts
 | |
|       run: ./gradlew check
 | 
