File tree Expand file tree Collapse file tree 3 files changed +20
-10
lines changed
Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,26 @@ name: Lint & Test with Gradle
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
77
88jobs :
99 gradle :
1010 runs-on : ubuntu-latest
1111 strategy :
1212 matrix :
13- java-version : ['11', '17']
13+ java-version :
14+ - 17
15+ - 21
1416
1517 steps :
1618 - uses : actions/checkout@v4
1719 - name : Install JDK
1820 uses : actions/setup-java@v4
1921 with :
2022 java-version : ${{ matrix.java-version }}
21- distribution : ' adopt'
23+ distribution : " adopt"
2224 - name : Lint
2325 run : gradle spotlessCheck
2426 - name : Build & Test
25- run : gradle test -x spotlessApply
27+ run : gradle test -x spotlessApply --info
Original file line number Diff line number Diff line change @@ -2,23 +2,26 @@ name: Lint & Test with Maven
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
77
88jobs :
99 mvn :
1010 runs-on : ubuntu-latest
1111 strategy :
1212 matrix :
13- java-version : ['11', '17']
13+ java-version :
14+ - 11
15+ - 17
16+ - 21
1417
1518 steps :
1619 - uses : actions/checkout@v4
1720 - name : Install JDK
1821 uses : actions/setup-java@v4
1922 with :
2023 java-version : ${{ matrix.java-version }}
21- distribution : ' adopt'
24+ distribution : " adopt"
2225 - name : Lint
2326 run : mvn --batch-mode spotless:check
2427 - name : Build & Test
Original file line number Diff line number Diff line change @@ -22,16 +22,21 @@ dependencies {
2222 // ***** OAUTH DEPENDENCIES *****
2323 implementation(" com.slack.api:bolt-jetty:1.45.3" )
2424 // ***** TEST DEPENDENCIES *****
25- testImplementation(' org.junit.jupiter:junit-jupiter-engine:5.13.4' )
25+ testImplementation(' org.junit.jupiter:junit-jupiter-api:5.13.4' )
26+ testRuntimeOnly(' org.junit.jupiter:junit-jupiter-engine:5.13.4' )
2627 testImplementation(' org.mockito:mockito-core:5.18.0' )
2728}
2829
2930application {
3031 mainClass = ' Main'
3132}
3233
33- tasks. named(' test' ) {
34- useJUnit()
34+ testing {
35+ suites {
36+ test {
37+ useJUnitJupiter()
38+ }
39+ }
3540}
3641
3742spotless {
You can’t perform that action at this time.
0 commit comments