Skip to content

Commit

Permalink
chore: set up IDE plugin verification on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed Dec 10, 2024
1 parent fd003c7 commit 5494041
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ jobs:

- name: Unit tests
run: ./gradlew allTests --stacktrace --no-configuration-cache

- name: Verify IDE plugin
run: ./gradlew debugger:ideplugin:verifyPlugin
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ achieve thread-safety, and more. It takes about 10 minutes to try it.
* Latest version:
[![Maven Central](https://img.shields.io/maven-central/v/pro.respawn.flowmvi/core?label=Maven%20Central)](https://central.sonatype.com/namespace/pro.respawn.flowmvi)
* Documentation:
[![Docs](https://img.shields.io/website?down_color=red&down_message=Offline&label=Docs&up_color=green&up_message=Online&url=https%3A%2F%2Fopensource.respawn.pro%2FFlowMVI%2F%23%2F)](https://opensource.respawn.pro/FlowMVI/#/)
[![Docs](https://img.shields.io/website?down_color=red&down_message=Offline&label=Docs&up_color=green&up_message=Online&url=https%3A%2F%2Fopensource.respawn.pro%2FFlowMVI%2F%23%2F)](https://opensource.respawn.pro/FlowMVI/#/quickstart)
* KDoc:
[![Javadoc](https://javadoc.io/badge2/pro.respawn.flowmvi/core/javadoc.svg)](https://opensource.respawn.pro/FlowMVI/javadocs/index.html)
* Sample App (See features) ![badge-wasm]:
Expand Down Expand Up @@ -105,11 +105,11 @@ Here's what you get:
* First class Compose Multiplatform support optimized for performance and ease of use
* Use both MVVM+ (functional) or MVI (model-driven) style of programming
* Share, distribute, or disable side-effects based on your team's needs
* Dedicated remote debugger IDEA/AS plugin and app for Windows, Linux, MacOS
* Dedicated remote debugger and code generation IDEA/AS plugin and app for Windows, Linux, MacOS
* Integration with popular libraries, such as [Decompose (Essenty)](https://github.com/arkivanov/Decompose)
* The core library depends on kotlin coroutines. Nothing else
* Core library is fully covered by tests
* Minimal performance overhead, equal to using a simple Channel. Benchmarks are run regularly
* Minimal performance overhead, equal to using a simple Channel, with regular benchmarking
* Learn more by exploring the [sample app](https://opensource.respawn.pro/FlowMVI/sample/) in your browser

## How does it look?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ internal class TraditionalMVIBenchmark {
repeat(BenchmarkDefaults.intentsPerIteration) {
store.onIntent(BenchmarkIntent.Increment)
}
store.state.first { state -> state.counter >= BenchmarkDefaults.intentsPerIteration }
store.state.first { state -> state.counter == BenchmarkDefaults.intentsPerIteration }
}
}
10 changes: 10 additions & 0 deletions debugger/ideplugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@file:Suppress("UnstableApiUsage")

import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType

plugins {
kotlin("jvm")
alias(libs.plugins.compose)
Expand Down Expand Up @@ -36,6 +38,14 @@ intellijPlatform {
token = props["plugin.publishing.token"]?.toString()
hidden = true
}
pluginVerification {
ides {
props["plugin.local.ide.path"]?.toString()?.let(::local) ?: ide(
IntelliJPlatformType.AndroidStudio,
libs.versions.intellij.idea.get()
)
}
}
pluginConfiguration {
ideaVersion {
sinceBuild = Config.Plugin.minIdeaVersion
Expand Down

0 comments on commit 5494041

Please sign in to comment.