diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7675c8e..f3a0f54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 17fc64e..49916bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`