添加dependencies-base模块,将dependencies-common中的部分配置转移到它里面。 #257
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "test" | |
on: | |
push: | |
branches: [ test*, "*.*.*" ] | |
jobs: | |
# job 1 | |
test: | |
name: "test" | |
runs-on: "${{ matrix.os }}-latest" | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 8, 11, 17, 21 ] | |
os: [ | |
ubuntu, | |
macos, | |
windows, # Skip tests, because too many errors in unit-test. | |
] | |
springboot: [ | |
2.7.18, | |
2.6.15, | |
2.5.15, | |
2.4.13, | |
2.3.12.RELEASE, | |
2.2.13.RELEASE, | |
#2.1.18.RELEASE, | |
#2.0.9.RELEASE | |
] | |
steps: | |
# step 1 | |
- name: "Checkout" | |
uses: actions/checkout@v4.1.1 | |
# step 2 | |
- name: "Set up Java JDK" | |
uses: actions/setup-java@v4.1.0 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
# step 3 | |
## step 3.1: for Ubuntu and MacOS | |
- name: "Test with Maven on '${{ matrix.os }}' OS" | |
if: matrix.os != 'windows' | |
run: | | |
./mvnw -version; | |
./mvnw -T 4C clean test \ | |
-P args-for-client-test \ | |
-P priority-spring-boot-dependencies \ | |
-Dspring-boot.version=${{ matrix.springboot }} \ | |
-Dmaven.git-commit-id.skip=true \ | |
-e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | |
## step 3.2: for Windows | |
- name: "Build with Maven on 'windows' OS (Skip tests)" | |
if: matrix.os == 'windows' | |
run: | # Skip tests, because too many errors in unit-test. | |
./mvnw.cmd -version; | |
./mvnw.cmd clean install -P args-for-client-test -DskipTests -P priority-spring-boot-dependencies -D spring-boot.version=${{ matrix.springboot }} -D maven.git-commit-id.skip=true -e -B -D org.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | |
# job 2 | |
test-springboot3x: | |
name: "test-springboot3.x" | |
runs-on: "${{ matrix.os }}-latest" | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 17, 21 ] | |
os: [ | |
ubuntu, | |
macos, | |
windows, # Skip tests, because too many errors in unit-test. | |
] | |
springboot: [ | |
3.2.0, | |
3.1.6, | |
3.0.13 | |
] | |
steps: | |
# step 1 | |
- name: "Checkout" | |
uses: actions/checkout@v4.1.1 | |
# step 2 | |
- name: "Set up Java JDK" | |
uses: actions/setup-java@v4.1.0 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
# step 3 | |
## step 3.1: for Ubuntu and MacOS | |
- name: "Test with Maven on '${{ matrix.os }}' OS" | |
if: matrix.os != 'windows' | |
run: | | |
./mvnw -version; | |
./mvnw -T 4C clean install \ | |
-P args-for-client-test \ | |
-P priority-spring-boot-dependencies \ | |
-Dspring-boot.version=${{ matrix.springboot }} \ | |
-Dmaven.git-commit-id.skip=true \ | |
-e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | |
## step 3.2: for Windows | |
- name: "Build with Maven on 'windows' OS (Skip tests)" | |
if: matrix.os == 'windows' | |
run: | # Skip tests, because too many errors in unit-test. | |
./mvnw.cmd -version; | |
./mvnw.cmd clean install -P args-for-client-test -DskipTests -P priority-spring-boot-dependencies -D spring-boot.version=${{ matrix.springboot }} -D maven.git-commit-id.skip=true -e -B -D org.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | |
# job 3 | |
test-arm64: | |
name: "test-arm64" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
springboot: [ | |
2.7.18, | |
2.6.15, | |
2.5.15, | |
2.4.13, | |
2.3.12.RELEASE, | |
2.2.13.RELEASE, | |
#2.1.18.RELEASE, | |
#2.0.9.RELEASE, | |
] | |
steps: | |
# step 1 | |
- name: "Checkout" | |
uses: actions/checkout@v4.1.1 | |
# step 2 | |
- name: "Set up QEMU" | |
id: qemu | |
uses: docker/setup-qemu-action@v3 | |
# step 3 | |
- name: "Build with Maven on 'arm64v8/ubuntu:20.04' OS (Skip tests)" | |
run: | | |
docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \ | |
arm64v8/ubuntu:20.04 \ | |
bash -exc 'apt-get update -y && \ | |
apt-get install maven -y && \ | |
mvn -version && \ | |
mvn -T 4C clean install \ | |
-Prelease-seata \ | |
-Ppriority-spring-boot-dependencies \ | |
-Dspring-boot.version=${{ matrix.springboot }} \ | |
-DskipTests \ | |
-Dmaven.git-commit-id.skip=true \ | |
-e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' |