From f083d7c16c32dcf0c3bce1fd408d4bd062bf142f Mon Sep 17 00:00:00 2001 From: breandan Date: Sun, 29 Sep 2024 10:05:25 -0700 Subject: [PATCH] setup GH actions --- .github/dependabot.yml | 17 +++++++++++++++++ .github/workflows/build.yml | 23 +++++++++++++++++++++++ build.gradle.kts | 3 ++- src/test/kotlin/AceTest.kt | 2 ++ 4 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..9be205f5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,17 @@ +# Dependabot configuration: +# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + # Maintain dependencies for Gradle dependencies + - package-ecosystem: "gradle" + directory: "/" + target-branch: "next" + schedule: + interval: "daily" + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "next" + schedule: + interval: "daily" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..4011aad0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + paths: + - '**.kt' + - '**.kts' + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v1 + with: + java-version: 17 + - name: Build with Gradle + run: | + git submodule update --init --recursive + ./gradlew test buildPlugin --stacktrace diff --git a/build.gradle.kts b/build.gradle.kts index c33ae303..beeae675 100755 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -76,7 +76,8 @@ repositories { dependencies { // https://github.com/anyascii/anyascii implementation("com.anyascii:anyascii:0.3.2") - intellijPlatform{ + testImplementation("org.opentest4j:opentest4j:1.3.0") + intellijPlatform { testImplementation(libs.junit) bundledPlugins("com.intellij.java") diff --git a/src/test/kotlin/AceTest.kt b/src/test/kotlin/AceTest.kt index 536d9053..a06d9d65 100644 --- a/src/test/kotlin/AceTest.kt +++ b/src/test/kotlin/AceTest.kt @@ -157,6 +157,8 @@ class AceTest : BaseTest() { typeAndWaitForResults("t") + typeAndWaitForResults(session.tags[1].key) + myFixture.checkResult("test test test") }