@@ -46,26 +46,20 @@ jobs:
4646 pluginVerifierHomeDir : ${{ steps.properties.outputs.pluginVerifierHomeDir }}
4747 steps :
4848
49- # Check out current repository
49+ # Check out the current repository
5050 - name : Fetch Sources
5151 uses : actions/checkout@v4
5252
53- # Validate wrapper
54- - name : Gradle Wrapper Validation
55- uses : gradle/wrapper-validation-action@v2
56-
5753 # Set up Java environment for the next steps
5854 - name : Setup Java
5955 uses : actions/setup-java@v4
6056 with :
6157 distribution : zulu
62- java-version : 17
58+ java-version : 21
6359
6460 # Setup Gradle
6561 - name : Setup Gradle
66- uses : gradle/actions/setup-gradle@v3
67- with :
68- gradle-home-cache-cleanup : true
62+ uses : gradle/actions/setup-gradle@v4
6963
7064 # Set environment variables
7165 - name : Export Properties
8377 echo "$CHANGELOG" >> $GITHUB_OUTPUT
8478 echo "EOF" >> $GITHUB_OUTPUT
8579
86- ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
87-
8880 # Build plugin
8981 - name : Build plugin
9082 run : ./gradlew buildPlugin
@@ -114,7 +106,7 @@ jobs:
114106 runs-on : ubuntu-latest
115107 steps :
116108
117- # Check out current repository
109+ # Check out the current repository
118110 - name : Fetch Sources
119111 uses : actions/checkout@v4
120112
@@ -123,13 +115,11 @@ jobs:
123115 uses : actions/setup-java@v4
124116 with :
125117 distribution : zulu
126- java-version : 17
118+ java-version : 21
127119
128120 # Setup Gradle
129121 - name : Setup Gradle
130- uses : gradle/actions/setup-gradle@v3
131- with :
132- gradle-home-cache-cleanup : true
122+ uses : gradle/actions/setup-gradle@v4
133123
134124 # Run tests
135125 - name : Run Tests
@@ -145,7 +135,7 @@ jobs:
145135
146136 # Upload the Kover report to CodeCov
147137 - name : Upload Code Coverage Report
148- uses : codecov/codecov-action@v4
138+ uses : codecov/codecov-action@v5
149139 with :
150140 files : ${{ github.workspace }}/build/reports/kover/report.xml
151141
@@ -167,20 +157,23 @@ jobs:
167157 tool-cache : false
168158 large-packages : false
169159
170- # Check out current repository
160+ # Check out the current repository
171161 - name : Fetch Sources
172162 uses : actions/checkout@v4
163+ with :
164+ ref : ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
165+ fetch-depth : 0 # a full history is required for pull request analysis
173166
174167 # Set up Java environment for the next steps
175168 - name : Setup Java
176169 uses : actions/setup-java@v4
177170 with :
178171 distribution : zulu
179- java-version : 17
172+ java-version : 21
180173
181174 # Run Qodana inspections
182175 - name : Qodana - Code Inspection
183- uses : JetBrains/qodana-action@v2023.3.1
176+ uses : JetBrains/qodana-action@v2024.2
184177 with :
185178 cache-default-branch-only : true
186179
@@ -198,7 +191,7 @@ jobs:
198191 tool-cache : false
199192 large-packages : false
200193
201- # Check out current repository
194+ # Check out the current repository
202195 - name : Fetch Sources
203196 uses : actions/checkout@v4
204197
@@ -207,13 +200,11 @@ jobs:
207200 uses : actions/setup-java@v4
208201 with :
209202 distribution : zulu
210- java-version : 17
203+ java-version : 21
211204
212205 # Setup Gradle
213206 - name : Setup Gradle
214- uses : gradle/actions/setup-gradle@v3
215- with :
216- gradle-home-cache-cleanup : true
207+ uses : gradle/actions/setup-gradle@v4
217208
218209 # Cache Plugin Verifier IDEs
219210 - name : Setup Plugin Verifier IDEs Cache
@@ -224,7 +215,7 @@ jobs:
224215
225216 # Run Verify Plugin task and IntelliJ Plugin Verifier tool
226217 - name : Run Plugin Verification tasks
227- run : ./gradlew runPluginVerifier -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
218+ run : ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
228219
229220 # Collect Plugin Verifier Result
230221 - name : Collect Plugin Verifier Result
@@ -245,7 +236,7 @@ jobs:
245236 contents : write
246237 steps :
247238
248- # Check out current repository
239+ # Check out the current repository
249240 - name : Fetch Sources
250241 uses : actions/checkout@v4
251242
@@ -269,4 +260,4 @@ jobs:
269260 --notes "$(cat << 'EOM'
270261 ${{ needs.build.outputs.changelog }}
271262 EOM
272- )"
263+ )"
0 commit comments