Skip to content

Commit f083d7c

Browse files
committed
setup GH actions
1 parent 169a515 commit f083d7c

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Dependabot configuration:
2+
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
# Maintain dependencies for Gradle dependencies
7+
- package-ecosystem: "gradle"
8+
directory: "/"
9+
target-branch: "next"
10+
schedule:
11+
interval: "daily"
12+
# Maintain dependencies for GitHub Actions
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
target-branch: "next"
16+
schedule:
17+
interval: "daily"

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.kt'
7+
- '**.kts'
8+
9+
jobs:
10+
build:
11+
12+
runs-on: macos-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 17
20+
- name: Build with Gradle
21+
run: |
22+
git submodule update --init --recursive
23+
./gradlew test buildPlugin --stacktrace

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ repositories {
7676
dependencies {
7777
// https://github.com/anyascii/anyascii
7878
implementation("com.anyascii:anyascii:0.3.2")
79-
intellijPlatform{
79+
testImplementation("org.opentest4j:opentest4j:1.3.0")
80+
intellijPlatform {
8081
testImplementation(libs.junit)
8182

8283
bundledPlugins("com.intellij.java")

src/test/kotlin/AceTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ class AceTest : BaseTest() {
157157

158158
typeAndWaitForResults("t")
159159

160+
typeAndWaitForResults(session.tags[1].key)
161+
160162
myFixture.checkResult("tes<caret>t test test")
161163
}
162164

0 commit comments

Comments
 (0)