2222 paths :
2323 - " intellij/**"
2424
25+ concurrency :
26+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
27+ cancel-in-progress : true
28+
2529jobs :
2630
2731 # Prepare environment and build the plugin
@@ -34,13 +38,13 @@ jobs:
3438 pluginVerifierHomeDir : ${{ steps.properties.outputs.pluginVerifierHomeDir }}
3539 steps :
3640
37- # Check out current repository
41+ # Check out the current repository
3842 - name : Fetch Sources
3943 uses : actions/checkout@v4
4044
4145 # Validate wrapper
4246 - name : Gradle Wrapper Validation
43- uses :
gradle/wrapper-validation[email protected] 47+ uses : gradle/actions/ wrapper-validation@v3
4448
4549 # Set up Java environment for the next steps
4650 - name : Setup Java
5155
5256 # Setup Gradle
5357 - name : Setup Gradle
54- uses : gradle/gradle-build-action@v2
58+ uses : gradle/actions/setup-gradle@v3
5559 with :
5660 gradle-home-cache-cleanup : true
5761
7276 echo "$CHANGELOG" >> $GITHUB_OUTPUT
7377 echo "EOF" >> $GITHUB_OUTPUT
7478
75- ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
76-
7779 # Build plugin
7880 - name : Build plugin
7981 working-directory : ./intellij
9294
9395 # Store already-built plugin as an artifact for downloading
9496 - name : Upload artifact
95- uses : actions/upload-artifact@v3
97+ uses : actions/upload-artifact@v4
9698 with :
9799 name : ${{ steps.artifact.outputs.filename }}
98100 path : ./intellij/build/distributions/content/*/*
@@ -104,7 +106,7 @@ jobs:
104106 runs-on : ubuntu-latest
105107 steps :
106108
107- # Check out current repository
109+ # Check out the current repository
108110 - name : Fetch Sources
109111 uses : actions/checkout@v4
110112
@@ -117,7 +119,7 @@ jobs:
117119
118120 # Setup Gradle
119121 - name : Setup Gradle
120- uses : gradle/gradle-build-action@v2
122+ uses : gradle/actions/setup-gradle@v3
121123 with :
122124 gradle-home-cache-cleanup : true
123125
@@ -129,14 +131,14 @@ jobs:
129131 # Collect Tests Result of failed tests
130132 - name : Collect Tests Result
131133 if : ${{ failure() }}
132- uses : actions/upload-artifact@v3
134+ uses : actions/upload-artifact@v4
133135 with :
134136 name : tests-result
135137 path : ${{ github.workspace }}/intellij/build/reports/tests
136138
137139 # Upload the Kover report to CodeCov
138140 - name : Upload Code Coverage Report
139- uses : codecov/codecov-action@v3
141+ uses : codecov/codecov-action@v4
140142 with :
141143 files : ${{ github.workspace }}/intellij/build/reports/kover/report.xml
142144
@@ -158,7 +160,7 @@ jobs:
158160 tool-cache : false
159161 large-packages : false
160162
161- # Check out current repository
163+ # Check out the current repository
162164 - name : Fetch Sources
163165 uses : actions/checkout@v4
164166
@@ -169,6 +171,11 @@ jobs:
169171 distribution : zulu
170172 java-version : 17
171173
174+ # Run Qodana inspections
175+ # - name: Qodana - Code Inspection
176+ # uses: JetBrains/[email protected] 177+ # with:
178+ # cache-default-branch-only: true
172179
173180 # Run plugin structure verification along with IntelliJ Plugin Verifier
174181 verify :
@@ -184,7 +191,7 @@ jobs:
184191 tool-cache : false
185192 large-packages : false
186193
187- # Check out current repository
194+ # Check out the current repository
188195 - name : Fetch Sources
189196 uses : actions/checkout@v4
190197
@@ -197,26 +204,26 @@ jobs:
197204
198205 # Setup Gradle
199206 - name : Setup Gradle
200- uses : gradle/gradle-build-action@v2
207+ uses : gradle/actions/setup-gradle@v3
201208 with :
202209 gradle-home-cache-cleanup : true
203210
204211 # Cache Plugin Verifier IDEs
205212 - name : Setup Plugin Verifier IDEs Cache
206- uses : actions/cache@v3
213+ uses : actions/cache@v4
207214 with :
208215 path : ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides
209216 key : plugin-verifier-${{ hashFiles('intellij/build/listProductsReleases.txt') }}
210217
211218 # Run Verify Plugin task and IntelliJ Plugin Verifier tool
212219 - name : Run Plugin Verification tasks
213220 working-directory : ./intellij
214- run : ./gradlew runPluginVerifier -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
221+ run : ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
215222
216223 # Collect Plugin Verifier Result
217224 - name : Collect Plugin Verifier Result
218225 if : ${{ always() }}
219- uses : actions/upload-artifact@v3
226+ uses : actions/upload-artifact@v4
220227 with :
221228 name : pluginVerifier-result
222229 path : ${{ github.workspace }}/intellij/build/reports/pluginVerifier
@@ -232,17 +239,10 @@ jobs:
232239# contents: write
233240# steps:
234241#
235- # # Check out current repository
242+ # # Check out the current repository
236243# - name: Fetch Sources
237244# uses: actions/checkout@v4
238245#
239- # # Set up Java environment for the next steps
240- # - name: Setup Java
241- # uses: actions/setup-java@v4
242- # with:
243- # distribution: zulu
244- # java-version: 17
245- #
246246# # Remove old release drafts by using the curl request for the available releases with a draft flag
247247# - name: Remove Old Release Drafts
248248# env:
@@ -257,7 +257,7 @@ jobs:
257257# env:
258258# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
259259# run: |
260- # gh release create v${{ needs.build.outputs.version }} \
260+ # gh release create " v${{ needs.build.outputs.version }}" \
261261# --draft \
262262# --title "v${{ needs.build.outputs.version }}" \
263263# --notes "$(cat << 'EOM'
0 commit comments