22
22
paths :
23
23
- " intellij/**"
24
24
25
+ concurrency :
26
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
27
+ cancel-in-progress : true
28
+
25
29
jobs :
26
30
27
31
# Prepare environment and build the plugin
@@ -34,13 +38,13 @@ jobs:
34
38
pluginVerifierHomeDir : ${{ steps.properties.outputs.pluginVerifierHomeDir }}
35
39
steps :
36
40
37
- # Check out current repository
41
+ # Check out the current repository
38
42
- name : Fetch Sources
39
43
uses : actions/checkout@v4
40
44
41
45
# Validate wrapper
42
46
- name : Gradle Wrapper Validation
43
- uses :
gradle/wrapper-validation[email protected]
47
+ uses : gradle/actions/ wrapper-validation@v3
44
48
45
49
# Set up Java environment for the next steps
46
50
- name : Setup Java
51
55
52
56
# Setup Gradle
53
57
- name : Setup Gradle
54
- uses : gradle/gradle-build-action@v2
58
+ uses : gradle/actions/setup-gradle@v3
55
59
with :
56
60
gradle-home-cache-cleanup : true
57
61
72
76
echo "$CHANGELOG" >> $GITHUB_OUTPUT
73
77
echo "EOF" >> $GITHUB_OUTPUT
74
78
75
- ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
76
-
77
79
# Build plugin
78
80
- name : Build plugin
79
81
working-directory : ./intellij
92
94
93
95
# Store already-built plugin as an artifact for downloading
94
96
- name : Upload artifact
95
- uses : actions/upload-artifact@v3
97
+ uses : actions/upload-artifact@v4
96
98
with :
97
99
name : ${{ steps.artifact.outputs.filename }}
98
100
path : ./intellij/build/distributions/content/*/*
@@ -104,7 +106,7 @@ jobs:
104
106
runs-on : ubuntu-latest
105
107
steps :
106
108
107
- # Check out current repository
109
+ # Check out the current repository
108
110
- name : Fetch Sources
109
111
uses : actions/checkout@v4
110
112
@@ -117,7 +119,7 @@ jobs:
117
119
118
120
# Setup Gradle
119
121
- name : Setup Gradle
120
- uses : gradle/gradle-build-action@v2
122
+ uses : gradle/actions/setup-gradle@v3
121
123
with :
122
124
gradle-home-cache-cleanup : true
123
125
@@ -129,14 +131,14 @@ jobs:
129
131
# Collect Tests Result of failed tests
130
132
- name : Collect Tests Result
131
133
if : ${{ failure() }}
132
- uses : actions/upload-artifact@v3
134
+ uses : actions/upload-artifact@v4
133
135
with :
134
136
name : tests-result
135
137
path : ${{ github.workspace }}/intellij/build/reports/tests
136
138
137
139
# Upload the Kover report to CodeCov
138
140
- name : Upload Code Coverage Report
139
- uses : codecov/codecov-action@v3
141
+ uses : codecov/codecov-action@v4
140
142
with :
141
143
files : ${{ github.workspace }}/intellij/build/reports/kover/report.xml
142
144
@@ -158,7 +160,7 @@ jobs:
158
160
tool-cache : false
159
161
large-packages : false
160
162
161
- # Check out current repository
163
+ # Check out the current repository
162
164
- name : Fetch Sources
163
165
uses : actions/checkout@v4
164
166
@@ -169,6 +171,11 @@ jobs:
169
171
distribution : zulu
170
172
java-version : 17
171
173
174
+ # Run Qodana inspections
175
+ # - name: Qodana - Code Inspection
176
+ # uses: JetBrains/[email protected]
177
+ # with:
178
+ # cache-default-branch-only: true
172
179
173
180
# Run plugin structure verification along with IntelliJ Plugin Verifier
174
181
verify :
@@ -184,7 +191,7 @@ jobs:
184
191
tool-cache : false
185
192
large-packages : false
186
193
187
- # Check out current repository
194
+ # Check out the current repository
188
195
- name : Fetch Sources
189
196
uses : actions/checkout@v4
190
197
@@ -197,26 +204,26 @@ jobs:
197
204
198
205
# Setup Gradle
199
206
- name : Setup Gradle
200
- uses : gradle/gradle-build-action@v2
207
+ uses : gradle/actions/setup-gradle@v3
201
208
with :
202
209
gradle-home-cache-cleanup : true
203
210
204
211
# Cache Plugin Verifier IDEs
205
212
- name : Setup Plugin Verifier IDEs Cache
206
- uses : actions/cache@v3
213
+ uses : actions/cache@v4
207
214
with :
208
215
path : ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides
209
216
key : plugin-verifier-${{ hashFiles('intellij/build/listProductsReleases.txt') }}
210
217
211
218
# Run Verify Plugin task and IntelliJ Plugin Verifier tool
212
219
- name : Run Plugin Verification tasks
213
220
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 }}
215
222
216
223
# Collect Plugin Verifier Result
217
224
- name : Collect Plugin Verifier Result
218
225
if : ${{ always() }}
219
- uses : actions/upload-artifact@v3
226
+ uses : actions/upload-artifact@v4
220
227
with :
221
228
name : pluginVerifier-result
222
229
path : ${{ github.workspace }}/intellij/build/reports/pluginVerifier
@@ -232,17 +239,10 @@ jobs:
232
239
# contents: write
233
240
# steps:
234
241
#
235
- # # Check out current repository
242
+ # # Check out the current repository
236
243
# - name: Fetch Sources
237
244
# uses: actions/checkout@v4
238
245
#
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
- #
246
246
# # Remove old release drafts by using the curl request for the available releases with a draft flag
247
247
# - name: Remove Old Release Drafts
248
248
# env:
@@ -257,7 +257,7 @@ jobs:
257
257
# env:
258
258
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
259
259
# run: |
260
- # gh release create v${{ needs.build.outputs.version }} \
260
+ # gh release create " v${{ needs.build.outputs.version }}" \
261
261
# --draft \
262
262
# --title "v${{ needs.build.outputs.version }}" \
263
263
# --notes "$(cat << 'EOM'
0 commit comments