File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 11# GitHub Actions Workflow created for testing and preparing the plugin release in following steps:
22# - validate Gradle Wrapper,
33# - run 'test' and 'verifyPlugin' tasks,
4+ # - run Qodana inspections,
45# - run 'buildPlugin' task and prepare artifact for the further tests,
56# - run 'runPluginVerifier' task,
67#
7677 name : tests-result
7778 path : ${{ github.workspace }}/build/reports/tests
7879
80+ # Run plugin build
81+ - name : Run Build
82+ - run : ./gradlew clean buildPlugin
83+
7984# until https://github.com/JetBrains/gradle-intellij-plugin/issues/1027 is solved
8085
8186# # Cache Plugin Verifier IDEs
@@ -97,6 +102,10 @@ jobs:
97102# name: pluginVerifier-result
98103# path: ${{ github.workspace }}/build/reports/pluginVerifier
99104
105+ # Run Qodana inspections
106+ - name : Qodana - Code Inspection
107+ uses : JetBrains/qodana-action@v4.2.5
108+
100109 # Prepare plugin archive content for creating artifact
101110 - name : Prepare Plugin Artifact
102111 id : artifact
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ plugins {
1212 id(" org.jetbrains.intellij" ) version " 1.6.0"
1313 // Gradle Changelog Plugin
1414 id(" org.jetbrains.changelog" ) version " 1.3.1"
15+ // Gradle Qodana Plugin
16+ id(" org.jetbrains.qodana" ) version " 0.1.13"
1517}
1618
1719group = properties(" pluginGroup" )
@@ -30,8 +32,6 @@ dependencies {
3032 implementation(" org.zeroturnaround:zt-exec:1.12" ) {
3133 exclude(" org.slf4j" )
3234 }
33-
34-
3535}
3636
3737// Configure project's dependencies
@@ -57,6 +57,14 @@ changelog {
5757 groups.set(emptyList())
5858}
5959
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+
6068tasks {
6169 buildPlugin {
6270 exclude { " coroutines" in it.name }
You can’t perform that action at this time.
0 commit comments