@@ -21,13 +21,13 @@ jobs:
21
21
pluginVerifierHomeDir : ${{ steps.properties.outputs.pluginVerifierHomeDir }}
22
22
steps :
23
23
24
- # Check out current repository
24
+ # Check out the current repository
25
25
- name : Fetch Sources
26
26
uses : actions/checkout@v4
27
27
28
28
# Validate wrapper
29
29
- name : Gradle Wrapper Validation
30
- uses : gradle/wrapper-validation-action@v1.1.0
30
+ uses : gradle/actions/ wrapper-validation@v3
31
31
32
32
# Set up Java environment for the next steps
33
33
- name : Setup Java
@@ -58,20 +58,48 @@ jobs:
58
58
echo "$CHANGELOG" >> $GITHUB_OUTPUT
59
59
echo "EOF" >> $GITHUB_OUTPUT
60
60
61
- ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
62
-
63
61
# Build plugin
64
62
- name : Build plugin
65
63
run : ./gradlew buildPlugin
66
64
65
+ # Run tests
66
+ test :
67
+ name : Test (${{ matrix.os }})
68
+ needs : [ build ]
69
+ runs-on : ${{ matrix.os }}
70
+ strategy :
71
+ fail-fast : false
72
+ matrix :
73
+ os :
74
+ - ubuntu-latest
75
+ - macos-latest
76
+ steps :
77
+
78
+ # Check out the current repository
79
+ - name : Fetch Sources
80
+ uses : actions/checkout@v4
81
+
82
+ # Set up Java environment for the next steps
83
+ - name : Setup Java
84
+ uses : actions/setup-java@v4
85
+ with :
86
+ distribution : zulu
87
+ java-version : 17
88
+
89
+ # Setup Gradle
90
+ - name : Setup Gradle
91
+ uses : gradle/actions/setup-gradle@v3
92
+ with :
93
+ gradle-home-cache-cleanup : true
94
+
67
95
# Run plugin structure verification along with IntelliJ Plugin Verifier
68
96
verify :
69
97
name : Verify plugin
70
98
needs : [ build ]
71
99
runs-on : ubuntu-latest
72
100
steps :
73
101
74
- # Check out current repository
102
+ # Check out the current repository
75
103
- name : Fetch Sources
76
104
uses : actions/checkout@v4
77
105
@@ -90,12 +118,12 @@ jobs:
90
118
91
119
# Run Verify Plugin task and IntelliJ Plugin Verifier tool
92
120
- name : Run Plugin Verification tasks
93
- run : ./gradlew runPluginVerifier -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
121
+ run : ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
94
122
95
123
# Collect Plugin Verifier Result
96
124
- name : Collect Plugin Verifier Result
97
125
if : ${{ always() }}
98
- uses : actions/upload-artifact@v3
126
+ uses : actions/upload-artifact@v4
99
127
with :
100
128
name : pluginVerifier-result
101
129
path : ${{ github.workspace }}/build/reports/pluginVerifier
0 commit comments