Skip to content

Commit

Permalink
github-actions: 对java21的测试。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Sep 25, 2023
1 parent 7e348d4 commit d8ebfd9
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 7 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/test-release-java21.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

# step 2
- name: "Setup Java JDK"
uses: actions/[email protected]
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
7 changes: 4 additions & 3 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d8ebfd9

Please sign in to comment.