File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
1
# GitHub Actions Workflow created for testing and preparing the plugin release in following steps:
2
2
# - validate Gradle Wrapper,
3
3
# - run 'test' and 'verifyPlugin' tasks,
4
+ # - run Qodana inspections,
4
5
# - run 'buildPlugin' task and prepare artifact for the further tests,
5
6
# - run 'runPluginVerifier' task,
6
7
#
76
77
name : tests-result
77
78
path : ${{ github.workspace }}/build/reports/tests
78
79
80
+ # Run plugin build
81
+ - name : Run Build
82
+ - run : ./gradlew clean buildPlugin
83
+
79
84
# until https://github.com/JetBrains/gradle-intellij-plugin/issues/1027 is solved
80
85
81
86
# # Cache Plugin Verifier IDEs
@@ -97,6 +102,10 @@ jobs:
97
102
# name: pluginVerifier-result
98
103
# path: ${{ github.workspace }}/build/reports/pluginVerifier
99
104
105
+ # Run Qodana inspections
106
+ - name : Qodana - Code Inspection
107
+ uses : JetBrains/qodana-action@v4.2.5
108
+
100
109
# Prepare plugin archive content for creating artifact
101
110
- name : Prepare Plugin Artifact
102
111
id : artifact
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ plugins {
12
12
id(" org.jetbrains.intellij" ) version " 1.6.0"
13
13
// Gradle Changelog Plugin
14
14
id(" org.jetbrains.changelog" ) version " 1.3.1"
15
+ // Gradle Qodana Plugin
16
+ id(" org.jetbrains.qodana" ) version " 0.1.13"
15
17
}
16
18
17
19
group = properties(" pluginGroup" )
@@ -30,8 +32,6 @@ dependencies {
30
32
implementation(" org.zeroturnaround:zt-exec:1.12" ) {
31
33
exclude(" org.slf4j" )
32
34
}
33
-
34
-
35
35
}
36
36
37
37
// Configure project's dependencies
@@ -57,6 +57,14 @@ changelog {
57
57
groups.set(emptyList())
58
58
}
59
59
60
+ // Configure Gradle Qodana Plugin - read more: https://github.com/JetBrains/gradle-qodana-plugin
61
+ qodana {
62
+ cachePath.set(projectDir.resolve(" .qodana" ).canonicalPath)
63
+ reportPath.set(projectDir.resolve(" build/reports/inspections" ).canonicalPath)
64
+ saveReport.set(true )
65
+ showReport.set(System .getenv(" QODANA_SHOW_REPORT" )?.toBoolean() ? : false )
66
+ }
67
+
60
68
tasks {
61
69
buildPlugin {
62
70
exclude { " coroutines" in it.name }
You can’t perform that action at this time.
0 commit comments