mirror of
				https://github.com/JetBrains/intellij-platform-plugin-template.git
				synced 2025-06-13 13:04:09 +00:00 
			
		
		
		
	GitHub Actions - use hash based on pluginVerifierIdeVersions in Setup Plugin Verifier IDEs Cache step
				
					
				
			This commit is contained in:
		
							parent
							
								
									f04885727a
								
							
						
					
					
						commit
						54d556ce2d
					
				
							
								
								
									
										17
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @ -169,16 +169,27 @@ jobs: | |||||||
|           path: ~/.gradle/wrapper |           path: ~/.gradle/wrapper | ||||||
|           key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} |           key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||||||
| 
 | 
 | ||||||
|  |       # Set environment variables | ||||||
|  |       - name: Export Properties | ||||||
|  |         id: properties | ||||||
|  |         shell: bash | ||||||
|  |         run: | | ||||||
|  |           PROPERTIES="$(./gradlew properties --console=plain -q)" | ||||||
|  |           IDE_VERSIONS="$(echo "$PROPERTIES" | grep "^pluginVerifierIdeVersions:" | base64)" | ||||||
|  | 
 | ||||||
|  |           echo "::set-output name=ideVersions::$IDE_VERSIONS" | ||||||
|  |           echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier" | ||||||
|  | 
 | ||||||
|       # Cache Plugin Verifier IDEs |       # Cache Plugin Verifier IDEs | ||||||
|       - name: Setup Plugin Verifier IDEs Cache |       - name: Setup Plugin Verifier IDEs Cache | ||||||
|         uses: actions/cache@v2 |         uses: actions/cache@v2 | ||||||
|         with: |         with: | ||||||
|           path: ~/.pluginVerifier/ides |           path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides | ||||||
|           key: ${{ runner.os }}-plugin-verifier-ides |           key: ${{ runner.os }}-plugin-verifier-${{ steps.properties.outputs.ideVersions }} | ||||||
| 
 | 
 | ||||||
|       # Run IntelliJ Plugin Verifier action using GitHub Action |       # Run IntelliJ Plugin Verifier action using GitHub Action | ||||||
|       - name: Verify Plugin |       - name: Verify Plugin | ||||||
|         run: ./gradlew runPluginVerifier |         run: ./gradlew runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }} | ||||||
| 
 | 
 | ||||||
|   # Prepare a draft release for GitHub Releases page for the manual verification |   # Prepare a draft release for GitHub Releases page for the manual verification | ||||||
|   # If accepted and published, release workflow would be triggered |   # If accepted and published, release workflow would be triggered | ||||||
|  | |||||||
| @ -3,6 +3,9 @@ | |||||||
| # IntelliJ Platform Plugin Template Changelog | # IntelliJ Platform Plugin Template Changelog | ||||||
| 
 | 
 | ||||||
| ## [Unreleased] | ## [Unreleased] | ||||||
|  | ### Added | ||||||
|  | - GitHub Actions - use hash based on `pluginVerifierIdeVersions` in `Setup Plugin Verifier IDEs Cache` step | ||||||
|  | 
 | ||||||
| ### Changed | ### Changed | ||||||
| - Use [Kotlin extension function](https://jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_services.html?search=servic#retrieving-a-service) to retrieve the `MyProjectService` in the `MyProjectManagerListener` | - Use [Kotlin extension function](https://jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_services.html?search=servic#retrieving-a-service) to retrieve the `MyProjectService` in the `MyProjectManagerListener` | ||||||
| - Dependencies - upgrade `org.jetbrains.intellij` to `0.6.2` | - Dependencies - upgrade `org.jetbrains.intellij` to `0.6.2` | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user