Skip to content

Commit fc78398

Browse files
committed
Move tests to build task
1 parent 3ef2f48 commit fc78398

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,6 @@ on:
77
pull_request:
88

99
jobs:
10-
test:
11-
name: Run Unit Tests
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout Repository
15-
uses: actions/checkout@v4
16-
17-
- name: Set-Up JDK
18-
uses: actions/setup-java@v4
19-
with:
20-
distribution: 'temurin'
21-
java-version: '21'
22-
cache: 'gradle'
23-
24-
- name: Run Tests
25-
run: ./gradlew test --no-daemon
26-
2710
build:
2811
concurrency:
2912
group: ${{ github.workflow }}-${{ github.ref }}

common/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,9 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
8282
jvmTarget = "17"
8383
}
8484
}
85+
86+
subprojects {
87+
tasks.named("build") {
88+
dependsOn("test")
89+
}
90+
}

0 commit comments

Comments
 (0)