Skip to content

Commit f359dab

Browse files
committed
Intellij Platform Plugin migration - support multiple IDE versions
1 parent c004ced commit f359dab

File tree

2 files changed

+3
-56
lines changed

2 files changed

+3
-56
lines changed

.github/workflows/build.yml

-55
Original file line numberDiff line numberDiff line change
@@ -158,61 +158,6 @@ jobs:
158158
path: ./build/distributions/${{ needs.build.outputs.artifact }}
159159
if-no-files-found: error
160160

161-
# Verify built plugin using IntelliJ Plugin Verifier tool
162-
# Requires build job to be passed
163-
verify:
164-
name: Verify
165-
needs: build
166-
runs-on: ubuntu-latest
167-
steps:
168-
169-
# Setup Java 17 environment for the next steps
170-
- name: Setup Java
171-
uses: actions/[email protected]
172-
with:
173-
java-version: 17
174-
distribution: 'zulu'
175-
176-
# Check out current repository
177-
- name: Fetch Sources
178-
uses: actions/checkout@v3
179-
with:
180-
submodules: true
181-
182-
# Cache Gradle Dependencies
183-
- name: Setup Gradle Dependencies Cache
184-
uses: actions/cache@v3
185-
with:
186-
path: ~/.gradle/caches
187-
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
188-
189-
# Cache Gradle Wrapper
190-
- name: Setup Gradle Wrapper Cache
191-
uses: actions/cache@v3
192-
with:
193-
path: ~/.gradle/wrapper
194-
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
195-
196-
# Set environment variables
197-
- name: Export Properties
198-
id: properties
199-
shell: bash
200-
run: |
201-
PROPERTIES="$(./gradlew properties --console=plain -q)"
202-
IDE_VERSIONS="$(echo "$PROPERTIES" | grep "^pluginVerifierIdeVersions:" | base64)"
203-
echo "::set-output name=ideVersions::$IDE_VERSIONS"
204-
echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier"
205-
# Cache Plugin Verifier IDEs
206-
- name: Setup Plugin Verifier IDEs Cache
207-
uses: actions/cache@v3
208-
with:
209-
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
210-
key: ${{ runner.os }}-plugin-verifier-${{ steps.properties.outputs.ideVersions }}
211-
212-
# Run IntelliJ Plugin Verifier action using GitHub Action
213-
# - name: Verify Plugin
214-
# run: ./gradlew runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }}
215-
216161
# Prepare a draft release for GitHub Releases page for the manual verification
217162
# If accepted and published, release workflow would be triggered
218163
releaseDraft:

build.gradle.kts

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ intellijPlatform {
8383

8484
pluginVerification {
8585
ides {
86-
ide(IntelliJPlatformType.IntellijIdeaCommunity, properties("pluginVerifierIdeVersions").split(',').map(String::trim).filter(String::isNotEmpty)[0])
86+
properties("pluginVerifierIdeVersions").split(',').map(String::trim).filter(String::isNotEmpty).forEach {
87+
ide(IntelliJPlatformType.IntellijIdeaCommunity, it)
88+
}
8789
}
8890
}
8991

0 commit comments

Comments
 (0)