From f99456330f95e9fbbb5cf9a6e4807a9348bd6b5b Mon Sep 17 00:00:00 2001 From: jimin Date: Thu, 21 Dec 2023 11:54:53 +0800 Subject: [PATCH] optimize: fix CI workflow failed (#631) --- .github/workflows/{maven.yml => CI.yml} | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename .github/workflows/{maven.yml => CI.yml} (70%) diff --git a/.github/workflows/maven.yml b/.github/workflows/CI.yml similarity index 70% rename from .github/workflows/maven.yml rename to .github/workflows/CI.yml index 0c679c93d..cd8be650c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/CI.yml @@ -7,17 +7,18 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-18.04 ] - java: [ 8, 8.0.192 ] + os: [ ubuntu-latest ] + java: [ 8, 11 ] fail-fast: false max-parallel: 2 name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3.12.0 with: + distribution: 'zulu' java-version: ${{ matrix.java }} - name: Test with Maven run: mvn test -B --file pom.xml