Skip to content

Commit

Permalink
chore: add jmh results to pr
Browse files Browse the repository at this point in the history
  • Loading branch information
kmruiz committed May 7, 2024
1 parent 6c14981 commit b813b19
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/quality-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ jobs:
- name: Performance Tests
run: |
./gradlew --quiet --console=plain ":packages:jetbrains-plugin:jmh"
- name: JMH Benchmark Action
uses: kitlangton/jmh-benchmark-action@main
with:
jmh-output-path: build/reports/jmh/results.json
github-token: ${{ secrets.GITHUB_TOKEN }}

verify-plugin:
name: "Verify Plugin"
Expand Down
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ subprojects {
isScanForTestClasses = true
}

forkEvery = 0

jvmArgs(listOf(
"--add-opens=java.base/java.lang=ALL-UNNAMED"
))
Expand All @@ -88,7 +86,8 @@ subprojects {

configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
diktat().configFile(rootProject.layout.projectDirectory.file("gradle/diktat.yml").asFile.absolutePath)
diktat()
.configFile(rootProject.layout.projectDirectory.file("gradle/diktat.yml").asFile.absolutePath)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ class RuntimeInformationServiceTest {
PermanentInstallationID.get()
}.thenThrow(RuntimeException("Oops, I did it again."))

val appInfoInstance = mock<ApplicationInfo>().apply {
`when`(this.fullApplicationName).thenReturn("Test Application")
`when`(this.fullVersion).thenReturn("1984.1.1")
}

val service = RuntimeInformationService()

val runtimeInfo = service.get()
Expand Down

0 comments on commit b813b19

Please sign in to comment.