Skip to content

Commit e5df631

Browse files
committed
Optimize builds
1 parent 4ae12af commit e5df631

File tree

5 files changed

+7
-109
lines changed

5 files changed

+7
-109
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps:
1+
# GitHub Actions Workflow is created for preparing the plugin release in the following steps:
22
# - Validate Gradle Wrapper.
3-
# - Run 'test' and 'verifyPlugin' tasks.
4-
# - Run Qodana inspections.
5-
# - Run the 'buildPlugin' task and prepare artifact for further tests.
3+
# - Run 'verifyPlugin' task.
4+
# - Run the 'buildPlugin' task and prepare artifact.
65
# - Run the 'runPluginVerifier' task.
76
# - Create a draft release.
87
#
@@ -95,83 +94,6 @@ jobs:
9594
name: ${{ steps.artifact.outputs.filename }}
9695
path: ./build/distributions/content/*/*
9796

98-
# Run tests and upload a code coverage report
99-
test:
100-
name: Test
101-
needs: [ build ]
102-
runs-on: ubuntu-latest
103-
steps:
104-
105-
# Check out the current repository
106-
- name: Fetch Sources
107-
uses: actions/checkout@v4
108-
109-
# Set up Java environment for the next steps
110-
- name: Setup Java
111-
uses: actions/setup-java@v4
112-
with:
113-
distribution: zulu
114-
java-version: 17
115-
116-
# Setup Gradle
117-
- name: Setup Gradle
118-
uses: gradle/actions/setup-gradle@v3
119-
with:
120-
gradle-home-cache-cleanup: true
121-
122-
# Run tests
123-
- name: Run Tests
124-
run: ./gradlew check
125-
126-
# Collect Tests Result of failed tests
127-
- name: Collect Tests Result
128-
if: ${{ failure() }}
129-
uses: actions/upload-artifact@v4
130-
with:
131-
name: tests-result
132-
path: ${{ github.workspace }}/build/reports/tests
133-
134-
# Upload the Kover report to CodeCov
135-
- name: Upload Code Coverage Report
136-
uses: codecov/codecov-action@v4
137-
with:
138-
files: ${{ github.workspace }}/build/reports/kover/report.xml
139-
140-
# Run Qodana inspections and provide report
141-
inspectCode:
142-
name: Inspect code
143-
needs: [ build ]
144-
runs-on: ubuntu-latest
145-
permissions:
146-
contents: write
147-
checks: write
148-
pull-requests: write
149-
steps:
150-
151-
# Free GitHub Actions Environment Disk Space
152-
- name: Maximize Build Space
153-
uses: jlumbroso/free-disk-space@main
154-
with:
155-
tool-cache: false
156-
large-packages: false
157-
158-
# Check out the current repository
159-
- name: Fetch Sources
160-
uses: actions/checkout@v4
161-
162-
# Set up Java environment for the next steps
163-
- name: Setup Java
164-
uses: actions/setup-java@v4
165-
with:
166-
distribution: zulu
167-
java-version: 17
168-
169-
# Run Qodana inspections
170-
- name: Qodana - Code Inspection
171-
uses: JetBrains/[email protected]
172-
with:
173-
cache-default-branch-only: true
174-
17597
# Run plugin structure verification along with IntelliJ Plugin Verifier
17698
verify:
17799
name: Verify plugin
@@ -227,7 +149,7 @@ jobs:
227149
releaseDraft:
228150
name: Release draft
229151
if: github.event_name != 'pull_request'
230-
needs: [ build, test, inspectCode, verify ]
152+
needs: [ build, verify ]
231153
runs-on: ubuntu-latest
232154
permissions:
233155
contents: write

build.gradle.kts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ plugins {
77
alias(libs.plugins.kotlin) // Kotlin support
88
alias(libs.plugins.intelliJPlatform) // IntelliJ Platform Gradle Plugin
99
alias(libs.plugins.changelog) // Gradle Changelog Plugin
10-
alias(libs.plugins.qodana) // Gradle Qodana Plugin
11-
alias(libs.plugins.kover) // Gradle Kover Plugin
1210
}
1311

1412
group = providers.gradleProperty("pluginGroup").get()
@@ -114,17 +112,6 @@ changelog {
114112
repositoryUrl = providers.gradleProperty("pluginRepositoryUrl")
115113
}
116114

117-
// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration
118-
kover {
119-
reports {
120-
total {
121-
xml {
122-
onCheck = true
123-
}
124-
}
125-
}
126-
}
127-
128115
tasks {
129116
wrapper {
130117
gradleVersion = providers.gradleProperty("gradleVersion").get()

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ platformBundledPlugins =
2222
# Gradle Releases -> https://github.com/gradle/gradle/releases
2323
gradleVersion = 8.9
2424

25+
# Skip building searchable options -> https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html#intellijPlatform-buildSearchableOptions
26+
buildSearchableOptions = false
27+
2528
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
2629
kotlin.stdlib.default.dependency = false
2730

gradle/libs.versions.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ changelog = "2.2.1"
77
intelliJPlatform = "2.0.1"
88
kotlin = "1.9.25"
99
kover = "0.8.3"
10-
qodana = "2024.1.9"
1110

1211
[libraries]
1312
junit = { group = "junit", name = "junit", version.ref = "junit" }
@@ -17,4 +16,3 @@ changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
1716
intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "intelliJPlatform" }
1817
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
1918
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
20-
qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" }

qodana.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)