Skip to content

Commit 1551bd5

Browse files
authored
Merge pull request #131 from zero88/improvement/try-matrix-build
chore(build): add matrix build
2 parents 427dc7f + 8bd6229 commit 1551bd5

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,17 @@ jobs:
3838
uses: zero88/shared-ghactions/.github/workflows/gradle-build.yml@main
3939
needs: context
4040
if: needs.context.outputs.shouldBuild == 'true'
41+
strategy:
42+
matrix:
43+
java: [ '11', '17', '21' ]
44+
os: [ 'ubuntu-latest', 'windows-latest' ]
45+
fail-fast: false
46+
name: With Java-${{ matrix.java }} on ${{ matrix.os }}
4147
with:
4248
profile: 'ciBuild'
4349
version: ${{ needs.context.outputs.version }}
4450
semanticVersion: ${{ needs.context.outputs.semanticVersion }}
4551
hashVersion: ${{ needs.context.outputs.commitId }}
46-
buildArgs: 'clean build -x test'
4752

4853
docs:
4954
uses: zero88/shared-ghactions/.github/workflows/antora-docs.yml@main
@@ -86,7 +91,6 @@ jobs:
8691
profile: 'ciSonar'
8792
semanticVersion: ${{ needs.context.outputs.semanticVersion }}
8893
branch: ${{ needs.context.outputs.branch }}
89-
javaVersion: '17'
9094
secrets:
9195
githubToken: ${{ secrets.OSS_GITHUB_TOKEN }}
9296
sonarToken: ${{ secrets.OSS_SONARQUBE_TOKEN }}

.sdkmanrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Enable auto-env through the sdkman_auto_env config
2+
# Add key=value pairs of SDKs to use below
3+
java=11.0.22-tem

build.gradle.kts

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ project.ext.set("baseName", (gradle as ExtensionAware).extensions["BASE_NAME"] a
1616
project.ext.set(NexusConfig.NEXUS_VERSION_KEY, NexusVersion.BEFORE_2021_02_24)
1717

1818
java {
19-
sourceCompatibility = JavaVersion.VERSION_1_8
20-
targetCompatibility = JavaVersion.VERSION_1_8
19+
sourceCompatibility = JavaVersion.VERSION_11
2120
}
2221

2322
allprojects {
@@ -53,9 +52,6 @@ subprojects {
5352
oss {
5453
zero88.set(true)
5554
github.set(true)
56-
publishing {
57-
homepage.set("https://github.com/zero88/scheduler.x")
58-
}
5955
testLogger {
6056
slowThreshold = 7000
6157
}

core/src/test/java/io/github/zero88/schedulerx/IntervalSchedulerTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.junit.jupiter.api.extension.RegisterExtension;
1515
import org.junit.jupiter.params.ParameterizedTest;
1616
import org.junit.jupiter.params.provider.MethodSource;
17+
import org.junitpioneer.jupiter.RetryingTest;
1718

1819
import io.github.zero88.schedulerx.trigger.IntervalTrigger;
1920
import io.vertx.core.Vertx;
@@ -122,7 +123,7 @@ void test_job_should_be_executed_in_interval_trigger_after_delay(Vertx vertx, Ve
122123
.start();
123124
}
124125

125-
@Test
126+
@RetryingTest(3)
126127
void test_run_blocking_job_till_the_end(Vertx vertx, VertxTestContext testContext) {
127128
final Checkpoint flag = testContext.checkpoint(4);
128129
final AtomicLong lastTickOnEach = new AtomicLong();

0 commit comments

Comments
 (0)