Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# GitHub Actions Workflow created for testing and preparing the plugin release in following steps:
# - validate Gradle Wrapper,
# - run 'test' and 'verifyPlugin' tasks,
# - run Qodana inspections,
# - run 'buildPlugin' task and prepare artifact for the further tests,
# - run 'runPluginVerifier' task,
#
Expand Down Expand Up @@ -76,6 +77,10 @@ jobs:
name: tests-result
path: ${{ github.workspace }}/build/reports/tests

# Run plugin build
- name: Run Build
- run: ./gradlew clean buildPlugin

# until https://github.com/JetBrains/gradle-intellij-plugin/issues/1027 is solved

# # Cache Plugin Verifier IDEs
Expand All @@ -97,6 +102,10 @@ jobs:
# name: pluginVerifier-result
# path: ${{ github.workspace }}/build/reports/pluginVerifier

# Run Qodana inspections
- name: Qodana - Code Inspection
uses: JetBrains/qodana-action@v4.2.5

# Prepare plugin archive content for creating artifact
- name: Prepare Plugin Artifact
id: artifact
Expand Down
12 changes: 10 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ plugins {
id("org.jetbrains.intellij") version "1.6.0"
// Gradle Changelog Plugin
id("org.jetbrains.changelog") version "1.3.1"
// Gradle Qodana Plugin
id("org.jetbrains.qodana") version "0.1.13"
}

group = properties("pluginGroup")
Expand All @@ -30,8 +32,6 @@ dependencies {
implementation("org.zeroturnaround:zt-exec:1.12") {
exclude("org.slf4j")
}


}

// Configure project's dependencies
Expand All @@ -57,6 +57,14 @@ changelog {
groups.set(emptyList())
}

// Configure Gradle Qodana Plugin - read more: https://github.com/JetBrains/gradle-qodana-plugin
qodana {
cachePath.set(projectDir.resolve(".qodana").canonicalPath)
reportPath.set(projectDir.resolve("build/reports/inspections").canonicalPath)
saveReport.set(true)
showReport.set(System.getenv("QODANA_SHOW_REPORT")?.toBoolean() ?: false)
}

tasks {
buildPlugin {
exclude { "coroutines" in it.name }
Expand Down