From c41062881bb6cf675bb67e38dabe7f2b31766940 Mon Sep 17 00:00:00 2001 From: zavakid Date: Wed, 25 Oct 2023 00:31:26 +0800 Subject: [PATCH] ci: update CI java versions; upgrade GitHub actions --- .github/dependabot.yml | 4 ++++ .github/workflows/ci.yml | 8 ++++---- .github/workflows/strong-ci.yml | 19 +++++++------------ 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 12342f9..e549596 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,3 +13,7 @@ updates: directory: "/auto-pipeline-examples" schedule: interval: "daily" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ecb16d9..0f3ce27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,14 +18,14 @@ jobs: strategy: matrix: os: [ ubuntu-20.04, windows-2022 ] - java: [ 8, 20 ] + java: [ 8, 21 ] fail-fast: false max-parallel: 32 - name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} + name: CI on JDK ${{ matrix.java }} OS ${{ matrix.os }} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: zulu java-version: ${{ matrix.java }} diff --git a/.github/workflows/strong-ci.yml b/.github/workflows/strong-ci.yml index 21cca0d..8f547c3 100644 --- a/.github/workflows/strong-ci.yml +++ b/.github/workflows/strong-ci.yml @@ -19,39 +19,34 @@ jobs: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners runs-on: ubuntu-latest timeout-minutes: 15 - name: test by multiply java versions + name: CI by multiply java versions steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: setup Java 8 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 8 distribution: zulu # only first java setup need enable cache cache: maven - name: setup Java 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 11 distribution: microsoft - name: setup Java 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 distribution: microsoft - - name: setup Java 20 - uses: actions/setup-java@v3 - with: - java-version: 20 - distribution: zulu - name: setup Java 21 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: - java-version: 21-ea + java-version: 21 distribution: zulu - run: scripts/integration_test