Skip to content

IntelliJ Plugin Compatibility #736

IntelliJ Plugin Compatibility

IntelliJ Plugin Compatibility #736

Workflow file for this run

name: IntelliJ Plugin Compatibility
on:
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests)
push:
branches: [ main ]
# Trigger the workflow on any pull request
pull_request:
# Trigger the workflow on a schedule; daily
schedule:
- cron: '0 0 * * *'
jobs:
files-changed:
uses: ./.github/workflows/files-changed.yaml
compatibility:
name: Ensure plugin compatibility against targeted platform version & the latest EAP snapshot for both IDEA Community, IDEA Ultimate.
runs-on: ubuntu-latest
needs: files-changed
if: needs.files-changed.outputs.changelog == 'false' || ( needs.files-changed.outputs.changelog == 'true' && needs.files-changed.outputs.changed_count > 1 )
steps:
- name: Check out repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup Java 17
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with:
java-version: 17
distribution: 'zulu'
cache: gradle
- name: Build the plugin
run: ./gradlew buildPlugin
- name: Generate IDE Versions List
run: ./gradlew generateIdeVersionsList
- name: Verify plugin on IntelliJ Platforms
id: verify
uses: ChrisCarini/intellij-platform-plugin-verifier-action@latest
with:
# Generated from the `generateIdeVersionsList` task above.
ide-versions: build/intellij-platform-plugin-verifier-action-ide-versions-file.txt
- name: Get log file path and print contents
run: |
echo "The log file path is: ${{steps.verify.outputs.verification-output-log-filename}}" ;
cat ${{steps.verify.outputs.verification-output-log-filename}}