-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests and build workflow, bump sinceVersion
- Loading branch information
1 parent
a7927ee
commit 4ceca4e
Showing
16 changed files
with
418 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Fetch Sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Run Tests | ||
run: ./gradlew check | ||
|
||
- name: Collect Tests Result | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tests-result | ||
path: ${{ github.workspace }}/build/reports/tests | ||
|
||
- name: Run Plugin Verification tasks | ||
run: ./gradlew runPluginVerifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,68 @@ | ||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat | ||
|
||
plugins { | ||
id("java") | ||
id("org.jetbrains.intellij") version "1.13.3" | ||
id("java") | ||
id("org.jetbrains.intellij") version "1.13.3" | ||
} | ||
|
||
group = "ee.carlrobert" | ||
version = "1.10.5" | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenCentral() | ||
} | ||
|
||
intellij { | ||
version.set("2022.2") | ||
type.set("IC") | ||
plugins.set(listOf()) | ||
version.set("2022.2") | ||
type.set("IC") | ||
plugins.set(listOf()) | ||
} | ||
|
||
dependencies { | ||
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2") | ||
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2") | ||
implementation("com.fifesoft:rsyntaxtextarea:3.3.2") | ||
implementation("com.vladsch.flexmark:flexmark-all:0.64.0") | ||
implementation("org.apache.commons:commons-text:1.10.0") | ||
implementation("ee.carlrobert:openai-client:1.0.14") | ||
implementation("com.knuddels:jtokkit:0.2.0") | ||
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2") | ||
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2") | ||
implementation("com.fifesoft:rsyntaxtextarea:3.3.2") | ||
implementation("com.vladsch.flexmark:flexmark-all:0.64.0") | ||
implementation("org.apache.commons:commons-text:1.10.0") | ||
implementation("ee.carlrobert:openai-client:1.0.14") | ||
implementation("com.knuddels:jtokkit:0.2.0") | ||
|
||
testImplementation("org.assertj:assertj-core:3.24.2") | ||
testImplementation("org.awaitility:awaitility:4.2.0") | ||
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.6.1") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.1") | ||
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.6.1") | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} | ||
|
||
tasks { | ||
patchPluginXml { | ||
sinceBuild.set("213") | ||
untilBuild.set("231.*") | ||
} | ||
|
||
signPlugin { | ||
certificateChain.set(System.getenv("CERTIFICATE_CHAIN")) | ||
privateKey.set(System.getenv("PRIVATE_KEY")) | ||
password.set(System.getenv("PRIVATE_KEY_PASSWORD")) | ||
} | ||
|
||
publishPlugin { | ||
token.set(System.getenv("PUBLISH_TOKEN")) | ||
} | ||
} | ||
|
||
tasks { | ||
patchPluginXml { | ||
sinceBuild.set("211") | ||
untilBuild.set("231.*") | ||
} | ||
|
||
signPlugin { | ||
certificateChain.set(System.getenv("CERTIFICATE_CHAIN")) | ||
privateKey.set(System.getenv("PRIVATE_KEY")) | ||
password.set(System.getenv("PRIVATE_KEY_PASSWORD")) | ||
} | ||
|
||
publishPlugin { | ||
token.set(System.getenv("PUBLISH_TOKEN")) | ||
} | ||
test { | ||
useJUnitPlatform() | ||
testLogging { | ||
events("passed", "skipped", "failed") | ||
exceptionFormat = TestExceptionFormat.FULL | ||
showStandardStreams = true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.