@@ -26,7 +26,7 @@ concurrency:
2626
2727jobs :
2828
29- # Prepare environment and build the plugin
29+ # Prepare the environment and build the plugin
3030 build :
3131 name : Build
3232 runs-on : ubuntu-latest
@@ -36,16 +36,23 @@ jobs:
3636 pluginVerifierHomeDir : ${{ steps.properties.outputs.pluginVerifierHomeDir }}
3737 steps :
3838
39+ # Free GitHub Actions Environment Disk Space
40+ - name : Maximize Build Space
41+ uses : jlumbroso/free-disk-space@v1.3.1
42+ with :
43+ tool-cache : false
44+ large-packages : false
45+
3946 # Check out the current repository
4047 - name : Fetch Sources
4148 uses : actions/checkout@v4
4249
43- # Set up Java environment for the next steps
50+ # Set up the Java environment for the next steps
4451 - name : Setup Java
4552 uses : actions/setup-java@v4
4653 with :
4754 distribution : zulu
48- java-version : 17
55+ java-version : 21
4956
5057 # Setup Gradle
5158 - name : Setup Gradle
6168 CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
6269
6370 echo "version=$VERSION" >> $GITHUB_OUTPUT
64- echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
65-
6671 echo "changelog<<EOF" >> $GITHUB_OUTPUT
6772 echo "$CHANGELOG" >> $GITHUB_OUTPUT
6873 echo "EOF" >> $GITHUB_OUTPUT
8287
8388 echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT
8489
85- # Store already-built plugin as an artifact for downloading
90+ # Store an already-built plugin as an artifact for downloading
8691 - name : Upload artifact
8792 uses : actions/upload-artifact@v4
8893 with :
@@ -96,20 +101,29 @@ jobs:
96101 runs-on : ubuntu-latest
97102 steps :
98103
104+ # Free GitHub Actions Environment Disk Space
105+ - name : Maximize Build Space
106+ uses : jlumbroso/free-disk-space@v1.3.1
107+ with :
108+ tool-cache : false
109+ large-packages : false
110+
99111 # Check out the current repository
100112 - name : Fetch Sources
101113 uses : actions/checkout@v4
102114
103- # Set up Java environment for the next steps
115+ # Set up the Java environment for the next steps
104116 - name : Setup Java
105117 uses : actions/setup-java@v4
106118 with :
107119 distribution : zulu
108- java-version : 17
120+ java-version : 21
109121
110122 # Setup Gradle
111123 - name : Setup Gradle
112124 uses : gradle/actions/setup-gradle@v4
125+ with :
126+ cache-read-only : true
113127
114128 # Run tests
115129 - name : Run Tests
@@ -128,8 +142,9 @@ jobs:
128142 uses : codecov/codecov-action@v5
129143 with :
130144 files : ${{ github.workspace }}/build/reports/kover/report.xml
145+ token : ${{ secrets.CODECOV_TOKEN }}
131146
132- # Run Qodana inspections and provide report
147+ # Run Qodana inspections and provide a report
133148 inspectCode :
134149 name : Inspect code
135150 needs : [ build ]
@@ -142,7 +157,7 @@ jobs:
142157
143158 # Free GitHub Actions Environment Disk Space
144159 - name : Maximize Build Space
145- uses : jlumbroso/free-disk-space@main
160+ uses : jlumbroso/free-disk-space@v1.3.1
146161 with :
147162 tool-cache : false
148163 large-packages : false
@@ -154,16 +169,16 @@ jobs:
154169 ref : ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
155170 fetch-depth : 0 # a full history is required for pull request analysis
156171
157- # Set up Java environment for the next steps
172+ # Set up the Java environment for the next steps
158173 - name : Setup Java
159174 uses : actions/setup-java@v4
160175 with :
161176 distribution : zulu
162- java-version : 17
177+ java-version : 21
163178
164179 # Run Qodana inspections
165180 - name : Qodana - Code Inspection
166- uses : JetBrains/qodana-action@v2024.3
181+ uses : JetBrains/qodana-action@v2025.1.1
167182 with :
168183 cache-default-branch-only : true
169184
@@ -176,7 +191,7 @@ jobs:
176191
177192 # Free GitHub Actions Environment Disk Space
178193 - name : Maximize Build Space
179- uses : jlumbroso/free-disk-space@main
194+ uses : jlumbroso/free-disk-space@v1.3.1
180195 with :
181196 tool-cache : false
182197 large-packages : false
@@ -185,29 +200,22 @@ jobs:
185200 - name : Fetch Sources
186201 uses : actions/checkout@v4
187202
188- # Set up Java environment for the next steps
203+ # Set up the Java environment for the next steps
189204 - name : Setup Java
190205 uses : actions/setup-java@v4
191206 with :
192207 distribution : zulu
193- java-version : 17
208+ java-version : 21
194209
195210 # Setup Gradle
196211 - name : Setup Gradle
197212 uses : gradle/actions/setup-gradle@v4
198-
199- # Cache Plugin Verifier IDEs
200- - name : Setup Plugin Verifier IDEs Cache
201- uses : actions/cache@v4
202213 with :
203- path : ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides
204- key : plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }}
214+ cache-read-only : true
205215
206216 # Run Verify Plugin task and IntelliJ Plugin Verifier tool
207217 - name : Run Plugin Verification tasks
208- run : exit 0
209- # Disabled until it works again for a lot of IDEs (https://github.com/JetBrains/intellij-platform-plugin-template/issues/462)
210- # run: ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
218+ run : ./gradlew verifyPlugin
211219
212220 # Collect Plugin Verifier Result
213221 - name : Collect Plugin Verifier Result
@@ -218,7 +226,7 @@ jobs:
218226 path : ${{ github.workspace }}/build/reports/pluginVerifier
219227
220228 # Prepare a draft release for GitHub Releases page for the manual verification
221- # If accepted and published, release workflow would be triggered
229+ # If accepted and published, the release workflow would be triggered
222230 releaseDraft :
223231 name : Release draft
224232 if : github.event_name != 'pull_request'
0 commit comments