From 01df11778511bdf77fa940440cd00a44b22b65a2 Mon Sep 17 00:00:00 2001 From: Ludovic DEHON Date: Fri, 9 Dec 2022 18:19:46 +0100 Subject: [PATCH] feat(cicd): move to temurin 17 to avoid java compiler bug --- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/main.yml | 13 ++++++++++--- build.gradle | 2 +- .../core/models/triggers/types/ScheduleTest.java | 2 +- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a2f403eb0b..31dc76aa1e 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 129c51bd29..44d5155b4f 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 b2d3df4b71..a83fec303c 100644 --- a/build.gradle +++ b/build.gradle @@ -274,7 +274,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 c05701ff17..b5184d01e6 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 @@ class ScheduleTest { ZonedDateTime date = ZonedDateTime.now() .withZoneSameLocal(ZoneId.of("America/New_York")) - .withMonth(ZonedDateTime.now().getMonthValue() + 1) + .withMonth(5) .withDayOfMonth(1) .withHour(9) .withMinute(12)