@@ -27,69 +27,23 @@ jobs:
2727
2828 # Check out the current repository
2929 - name : Fetch Sources
30- uses : actions/checkout@v4
30+ uses : actions/checkout@v5
3131
3232 # Set up the Java environment for the next steps
3333 - name : Setup Java
34- uses : actions/setup-java@v4
34+ uses : actions/setup-java@v5
3535 with :
3636 distribution : zulu
3737 java-version : 21
3838
3939 # Setup Gradle
4040 - name : Setup Gradle
41- uses : gradle/actions/setup-gradle@v4
41+ uses : gradle/actions/setup-gradle@v5
4242
4343 # Build plugin
4444 - name : Build plugin
4545 run : ./gradlew buildPlugin
4646
47- # Run Qodana inspections and provide a report
48- inspectCode :
49- name : Inspect code
50- needs : [ build ]
51- runs-on : ubuntu-latest
52- if : github.event_name == 'pull_request'
53-
54- permissions :
55- contents : write
56- checks : write
57- pull-requests : write
58- steps :
59-
60- # Free GitHub Actions Environment Disk Space
61- - name : Maximize Build Space
62- 63- with :
64- tool-cache : false
65- large-packages : false
66-
67- # Check out the current repository
68- - name : Fetch Sources
69- uses : actions/checkout@v4
70- with :
71- ref : ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
72- fetch-depth : 0 # a full history is required for pull request analysis
73-
74- # Set up the Java environment for the next steps
75- - name : Setup Java
76- uses : actions/setup-java@v4
77- with :
78- distribution : zulu
79- java-version : 21
80-
81- # Run Qodana inspections
82- - name : Qodana - Code Inspection
83- 84- with :
85- args : --baseline,./.qodana/baseline.sarif.json
86- cache-default-branch-only : true
87-
88- - name : Qodana - Publish Results
89- uses : github/codeql-action/upload-sarif@v3
90- with :
91- sarif_file : ${{ runner.temp }}/qodana/results/qodana.sarif.json
92-
9347 # Run tests and upload a code coverage report
9448 test :
9549 name : Test (${{ matrix.os }})
@@ -113,18 +67,18 @@ jobs:
11367
11468 # Check out the current repository
11569 - name : Fetch Sources
116- uses : actions/checkout@v4
70+ uses : actions/checkout@v5
11771
11872 # Set up the Java environment for the next steps
11973 - name : Setup Java
120- uses : actions/setup-java@v4
74+ uses : actions/setup-java@v5
12175 with :
12276 distribution : zulu
12377 java-version : 21
12478
12579 # Setup Gradle
12680 - name : Setup Gradle
127- uses : gradle/actions/setup-gradle@v4
81+ uses : gradle/actions/setup-gradle@v5
12882 with :
12983 cache-read-only : true
13084
@@ -135,11 +89,57 @@ jobs:
13589 # Collect Tests Result of failed tests
13690 - name : Collect Tests Result
13791 if : ${{ failure() }}
138- uses : actions/upload-artifact@v4
92+ uses : actions/upload-artifact@v5
13993 with :
14094 name : tests-result-${{ matrix.os }}
14195 path : ${{ github.workspace }}/build/reports/tests
14296
97+ # Run Qodana inspections and provide a report
98+ inspectCode :
99+ name : Inspect code
100+ needs : [ build ]
101+ runs-on : ubuntu-latest
102+ if : github.event_name == 'pull_request'
103+
104+ permissions :
105+ contents : write
106+ checks : write
107+ pull-requests : write
108+ steps :
109+
110+ # Free GitHub Actions Environment Disk Space
111+ - name : Maximize Build Space
112+ 113+ with :
114+ tool-cache : false
115+ large-packages : false
116+
117+ # Check out the current repository
118+ - name : Fetch Sources
119+ uses : actions/checkout@v5
120+ with :
121+ ref : ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
122+ fetch-depth : 0 # a full history is required for pull request analysis
123+
124+ # Set up the Java environment for the next steps
125+ - name : Setup Java
126+ uses : actions/setup-java@v5
127+ with :
128+ distribution : zulu
129+ java-version : 21
130+
131+ # Run Qodana inspections
132+ - name : Qodana - Code Inspection
133+ 134+ with :
135+ args : --baseline,./.qodana/baseline.sarif.json
136+ cache-default-branch-only : true
137+
138+ - name : Qodana - Publish Results
139+ uses : github/codeql-action/upload-sarif@v3
140+ with :
141+ sarif_file : ${{ runner.temp }}/qodana/results/qodana.sarif.json
142+
143143 # Run plugin structure verification along with IntelliJ Plugin Verifier
144144 verify :
145145 name : Verify plugin
@@ -156,18 +156,18 @@ jobs:
156156
157157 # Check out the current repository
158158 - name : Fetch Sources
159- uses : actions/checkout@v4
159+ uses : actions/checkout@v5
160160
161161 # Set up the Java environment for the next steps
162162 - name : Setup Java
163- uses : actions/setup-java@v4
163+ uses : actions/setup-java@v5
164164 with :
165165 distribution : zulu
166166 java-version : 21
167167
168168 # Setup Gradle
169169 - name : Setup Gradle
170- uses : gradle/actions/setup-gradle@v4
170+ uses : gradle/actions/setup-gradle@v5
171171 with :
172172 cache-read-only : true
173173
@@ -178,7 +178,7 @@ jobs:
178178 # Collect Plugin Verifier Result
179179 - name : Collect Plugin Verifier Result
180180 if : ${{ always() }}
181- uses : actions/upload-artifact@v4
181+ uses : actions/upload-artifact@v5
182182 with :
183183 name : pluginVerifier-result
184184 path : ${{ github.workspace }}/build/reports/pluginVerifier
0 commit comments