Integration with IntelliJ Plugin Verifier through the Gradle IntelliJ Plugin runPluginVerifier task

This commit is contained in:
Jakub Chrzanowski
2020-10-29 20:41:47 +01:00
committed by GitHub
parent 14fe3343f0
commit 2de45ab6ce
5 changed files with 42 additions and 25 deletions

View File

@@ -145,31 +145,33 @@ jobs:
runs-on: ubuntu-latest
steps:
# Download plugin artifact provided by the previous job
- name: Download Artifact
uses: actions/download-artifact@v1
# Setup Java 1.8 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
with:
name: plugin-artifact
java-version: 1.8
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v2
# Cache Gradle Dependencies
- name: Setup Gradle Dependencies Cache
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
# Cache Gradle Wrapper
- name: Setup Gradle Wrapper Cache
uses: actions/cache@v2
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
# Run IntelliJ Plugin Verifier action using GitHub Action
- name: Verify Plugin
id: verify
uses: ChrisCarini/intellij-platform-plugin-verifier-action@v0.0.2
with:
plugin-location: plugin-artifact/*.zip
ide-versions: |
ideaIC:2019.3
ideaIC:2020.1
ideaIC:2020.2
# Print the output of the verify step
- name: Print Logs
if: ${{ always() }}
env:
OUTPUT_LOG: ${{ steps.verify.outputs.verification-output-log-filename }}
run: |
echo "The verifier log file [$OUTPUT_LOG] contents : " ;
cat $OUTPUT_LOG
run: ./gradlew runPluginVerifier
# Prepare a draft release for GitHub Releases page for the manual verification
# If accepted and published, release workflow would be triggered