@@ -11,12 +11,10 @@ jobs:
11
11
outputs :
12
12
version : ${{ steps.properties.outputs.version }}
13
13
changelog : ${{ steps.properties.outputs.changelog }}
14
- pluginVerifierHomeDir : ${{ steps.properties.outputs.pluginVerifierHomeDir }}
15
14
steps :
16
-
17
15
# Free GitHub Actions Environment Disk Space
18
16
- name : Maximize Build Space
19
- uses : jlumbroso/free-disk-space@main
17
+ uses : jlumbroso/free-disk-space@v1.3.1
20
18
with :
21
19
tool-cache : false
22
20
large-packages : false
@@ -35,19 +33,17 @@ jobs:
35
33
# Validate wrapper
36
34
- name : Gradle Wrapper Validation
37
35
uses : gradle/actions/wrapper-validation@v3
38
-
36
+
39
37
# Setup Java environment for the next steps
40
38
- name : Setup Java
41
39
uses : actions/setup-java@v4
42
40
with :
43
41
distribution : zulu
44
- java-version : 17
42
+ java-version : 21
45
43
46
44
# Setup Java environment for the next steps
47
45
- name : Setup Gradle
48
- uses : gradle/gradle-build-action@v2
49
- with :
50
- gradle-home-cache-cleanup : true
46
+ uses : gradle/actions/setup-gradle@v4
51
47
52
48
# Set environment variables
53
49
- name : Export Properties
56
52
run : |
57
53
PROPERTIES="$(./gradlew properties --console=plain -q)"
58
54
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
59
- CHANGELOG="$(./gradlew getChangelog --unreleased --no-header -- console=plain -q)"
55
+ CHANGELOG="$(./gradlew getChangelog --console=plain -q)"
60
56
61
57
echo "version=$VERSION" >> $GITHUB_OUTPUT
62
- echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
63
58
64
59
echo "changelog<<EOF" >> $GITHUB_OUTPUT
65
60
echo "$CHANGELOG" >> $GITHUB_OUTPUT
@@ -86,37 +81,36 @@ jobs:
86
81
with :
87
82
name : ${{ steps.artifact.outputs.filename }}
88
83
path : ./build/distributions/content/*/*
89
-
84
+
90
85
# Run tests and upload a code coverage report
91
86
test :
92
87
name : Test
93
88
needs : build
94
89
runs-on : ubuntu-latest
95
90
steps :
96
-
97
91
# Free GitHub Actions Environment Disk Space
98
92
- name : Maximize Build Space
99
- uses : jlumbroso/free-disk-space@main
93
+ uses : jlumbroso/free-disk-space@v1.3.1
100
94
with :
101
95
tool-cache : false
102
96
large-packages : false
103
97
104
98
# Check out current repository
105
99
- name : Fetch Sources
106
100
uses : actions/checkout@v4
107
-
101
+
108
102
# Setup Java environment for the next steps
109
103
- name : Setup Java
110
104
uses : actions/setup-java@v4
111
105
with :
112
106
distribution : zulu
113
- java-version : 17
107
+ java-version : 21
114
108
115
109
# Setup Gradle
116
110
- name : Setup Gradle
117
- uses : gradle/gradle-build-action@v2
111
+ uses : gradle/actions/setup-gradle@v4
118
112
with :
119
- gradle-home- cache-cleanup : true
113
+ cache-read-only : true
120
114
121
115
# Run tests
122
116
- name : Run Tests
@@ -132,27 +126,33 @@ jobs:
132
126
133
127
# Upload Kover report to CodeCov
134
128
- name : Upload Code Coverage Report
135
- uses : codecov/codecov-action@v5
129
+ uses : codecov/codecov-action@v3
136
130
with :
137
131
files : ${{ github.workspace }}/build/reports/kover/report.xml
138
-
132
+
139
133
# Run plugin structure verification along with IntelliJ Plugin Verifier
140
134
verify :
141
135
name : Verify plugin
142
136
needs : build
143
137
runs-on : ubuntu-latest
144
138
steps :
139
+ # Free GitHub Actions Environment Disk Space
140
+ - name : Maximize Build Space
141
+
142
+ with :
143
+ tool-cache : false
144
+ large-packages : false
145
145
146
146
# Check out current repository
147
147
- name : Fetch Sources
148
148
uses : actions/checkout@v4
149
-
149
+
150
150
# Setup Java environment for the next steps
151
151
- name : Setup Java
152
152
uses : actions/setup-java@v4
153
153
with :
154
154
distribution : zulu
155
- java-version : 17
155
+ java-version : 21
156
156
157
157
# Setup Gradle
158
158
- name : Setup Gradle
@@ -162,12 +162,11 @@ jobs:
162
162
- name : Setup Plugin Verifier IDEs Cache
163
163
uses : actions/cache@v4
164
164
with :
165
- path : ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides
166
- key : plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }}
165
+ cache-read-only : true
167
166
168
167
# Run Verify Plugin task and IntelliJ Plugin Verifier tool
169
168
- name : Run Plugin Verification tasks
170
- run : ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
169
+ run : ./gradlew verifyPlugin
171
170
172
171
# Collect Plugin Verifier Result
173
172
- name : Collect Plugin Verifier Result
0 commit comments