From d8ebfd916d46acafbe09ec778ecdf04add08abf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Mon, 25 Sep 2023 15:05:04 +0800 Subject: [PATCH] =?UTF-8?q?github-actions:=20=E5=AF=B9java21=E7=9A=84?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test-release-java21.yml | 79 +++++++++++++++++++++++ .github/workflows/test-release.yml | 7 +- .github/workflows/test.yml | 9 +-- 3 files changed, 88 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/test-release-java21.yml diff --git a/.github/workflows/test-release-java21.yml b/.github/workflows/test-release-java21.yml new file mode 100644 index 0000000..ffe86bc --- /dev/null +++ b/.github/workflows/test-release-java21.yml @@ -0,0 +1,79 @@ +name: "Test Release" + +on: + push: + branches: [ master, test* ] + +jobs: + test-release: + name: "Test Release" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: [ 21 ] + maven: [ + 3.9.4, + 3.9.3, + 3.9.2, + 3.9.1, + 3.9.0, + 3.8.7, + 3.8.6, + 3.8.5, + 3.8.4, + 3.8.3, + 3.8.2, + 3.8.1, + 3.6.3, + 3.6.0, + 3.5.4, + 3.3.9, + 3.2.5, + 3.1.1, + 3.0.5, + 2.2.1, + #2.1.0, + #2.0.11 + ] + plexus-utils: [ + 3.5.0, + 3.4.2, + 3.3.1, + 3.2.1, + 3.1.1, + 3.0.24, + 2.1, + #2.0.7, + #1.5.15, + #1.4.9, + #1.3, + #1.2, + #1.1, + #1.0.5 + ] + steps: + # step 1 + - name: "Checkout" + uses: actions/checkout@v2.4.0 + + # step 2 + - name: "Setup Java JDK" + uses: actions/setup-java@v2.5.0 + with: + distribution: 'zulu' + java-version: ${{ matrix.java }} + + # step 3 + - name: "Print maven version" + run: | + mvn -version + + # step 4 + - name: "Run Test With Maven" + run: | + if [ "${{ matrix.java }}" == "8" ]; then + mvn clean install -Pcicd8 -Dmaven.version=${{ matrix.maven }} -Dplexus-utils.version=${{ matrix.plexus-utils }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; + else + mvn clean install -Pcicd -Dmaven.version=${{ matrix.maven }} -Dplexus-utils.version=${{ matrix.plexus-utils }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; + fi diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 57a1e7f..ee51bfd 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -13,9 +13,10 @@ jobs: matrix: java: [ 8, 17 ] maven: [ - 4.0.0-alpha-4 -Dmaven-plugin-annotations.version=3.7.0, - 4.0.0-alpha-3 -Dmaven-plugin-annotations.version=3.7.0, - 4.0.0-alpha-2 -Dmaven-plugin-annotations.version=3.7.0, + 3.9.4, + 3.9.3, + 3.9.2, + 3.9.1, 3.9.0, 3.8.7, 3.8.6, diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b29e5b..d715745 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,11 +13,12 @@ jobs: strategy: fail-fast: false matrix: - java: [ 8, 11, 17 ] + java: [ 8, 11, 17, 21 ] maven: [ - 4.0.0-alpha-4 -Dmaven-plugin-annotations.version=3.7.0, - 4.0.0-alpha-3 -Dmaven-plugin-annotations.version=3.7.0, - 4.0.0-alpha-2 -Dmaven-plugin-annotations.version=3.7.0, + 3.9.4, + 3.9.3, + 3.9.2, + 3.9.1, 3.9.0, 3.8.7, 3.8.6,