diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a2f403eb0bf..31dc76aa1e9 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -52,8 +52,8 @@ jobs: - name: Set up JDK uses: actions/setup-java@v3 with: - distribution: 'adopt' - java-version: 11 + distribution: 'temurin' + java-version: 17 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 179521c4356..3ac4f174675 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,8 +76,8 @@ jobs: - name: Set up JDK uses: actions/setup-java@v3 with: - distribution: 'adopt' - java-version: 11 + distribution: 'temurin' + java-version: 17 - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1 @@ -238,6 +238,13 @@ jobs: restore-keys: | ${{ runner.os }}-node- + # JDK + - name: Set up JDK + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 17 + # Publish - name: Publish package to Sonatype if: github.ref == 'refs/heads/develop' @@ -288,6 +295,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} - username: GitHub Actions + name: GitHub Actions icon_emoji: ':github-actions:' channel: 'C02DQ1A7JLR' diff --git a/build.gradle b/build.gradle index b586259804e..c712672198d 100644 --- a/build.gradle +++ b/build.gradle @@ -281,7 +281,7 @@ subprojects { } jacoco { - toolVersion = "0.8.4" + toolVersion = "0.8.8" } jacocoTestReport { diff --git a/core/src/test/java/io/kestra/core/models/triggers/types/ScheduleTest.java b/core/src/test/java/io/kestra/core/models/triggers/types/ScheduleTest.java index c05701ff175..b5184d01e6f 100644 --- a/core/src/test/java/io/kestra/core/models/triggers/types/ScheduleTest.java +++ b/core/src/test/java/io/kestra/core/models/triggers/types/ScheduleTest.java @@ -357,7 +357,7 @@ void timezone() throws Exception { ZonedDateTime date = ZonedDateTime.now() .withZoneSameLocal(ZoneId.of("America/New_York")) - .withMonth(ZonedDateTime.now().getMonthValue() + 1) + .withMonth(5) .withDayOfMonth(1) .withHour(9) .withMinute(12)