mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +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
|
||||
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
|
||||
- name: Setup Plugin Verifier IDEs Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.pluginVerifier/ides
|
||||
key: ${{ runner.os }}-plugin-verifier-ides
|
||||
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
|
||||
key: ${{ runner.os }}-plugin-verifier-${{ steps.properties.outputs.ideVersions }}
|
||||
|
||||
# Run IntelliJ Plugin Verifier action using GitHub Action
|
||||
- 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
|
||||
# If accepted and published, release workflow would be triggered
|
||||
|
@ -3,6 +3,9 @@
|
||||
# IntelliJ Platform Plugin Template Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Added
|
||||
- GitHub Actions - use hash based on `pluginVerifierIdeVersions` in `Setup Plugin Verifier IDEs Cache` step
|
||||
|
||||
### 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`
|
||||
- Dependencies - upgrade `org.jetbrains.intellij` to `0.6.2`
|
||||
|
Loading…
Reference in New Issue
Block a user