File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed
Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [pull_request, push]
4+
5+ jobs :
6+ build :
7+ runs-on : ${{ matrix.os }}
8+ strategy :
9+ matrix :
10+ os : [ ubuntu-latest ]
11+ steps :
12+ - uses : actions/checkout@v3
13+ - name : Set up JDK 17
14+ uses : actions/setup-java@v3
15+ with :
16+ java-version : ' 17'
17+ distribution : ' adopt'
18+
19+ - name : Validate Gradle wrapper
20+ uses : gradle/actions/wrapper-validation@v3
21+
22+ - name : ' Run Jdbc, Android, and Native-Linux Tests'
23+ if : matrix.os == 'ubuntu-latest'
24+ run : >-
25+ ./gradlew build --stacktrace
Original file line number Diff line number Diff line change @@ -25,11 +25,17 @@ dependencies {
2525 implementation(" io.zonky.test:embedded-postgres:2.0.7" )
2626 implementation(" io.zonky.test.postgres:embedded-postgres-binaries-linux-amd64:16.2.0" )
2727
28+ // OPTIONAL: Just for testing
2829 testImplementation(kotlin(" test" ))
2930 testImplementation(kotlin(" test-common" ))
3031 testImplementation(kotlin(" test-annotations-common" ))
3132}
3233
33- tasks.test {
34- useJUnitPlatform()
34+ // OPTIONAL: Make tests show in the build log even when they pass
35+ tasks.withType<Test >().configureEach {
36+ testLogging {
37+ events(" passed" , " skipped" , " failed" )
38+ showStandardStreams = true
39+ exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat .FULL
40+ }
3541}
You can’t perform that action at this time.
0 commit comments