forked from apache/incubator-seata
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0710c64
commit 397c6e7
Showing
19 changed files
with
281 additions
and
174 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,20 +28,27 @@ jobs: | |
# step 3 | ||
- name: "Print maven version" | ||
run: ./mvnw -version | ||
# step 4 | ||
- name: "Build with Maven" | ||
# step 4.1 | ||
- name: "Test, Check style, Check license with Maven and Java8" | ||
if: matrix.java == '8' | ||
run: | | ||
./mvnw -T 4C clean test \ | ||
-Dcheckstyle.skip=false -Dlicense.skip=false \ | ||
-Dmaven.git-commit-id.skip=true \ | ||
-e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
# step 4.2 | ||
- name: "Test with Maven and Java${{ matrix.java }}" | ||
if: matrix.java != '8' | ||
run: | | ||
if [ "${{ matrix.java }}" == "8" ]; then | ||
./mvnw -T 4C clean test -Dcheckstyle.skip=false -Dlicense.skip=false -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
elif [ "${{ matrix.java }}" == "17" ]; then | ||
./mvnw -T 4C clean test -Dcheckstyle.skip=true -Dlicense.skip=true -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
fi | ||
./mvnw -T 4C clean test \ | ||
-Dmaven.git-commit-id.skip=true \ | ||
-e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
# step 5 | ||
- name: "Codecov" | ||
if: matrix.java == '8' | ||
uses: codecov/[email protected] | ||
|
||
# job 2: Test on 'arm64v8/ubuntu' OS. | ||
# job 2: Build on 'arm64v8/ubuntu' OS (Skip tests). | ||
build_arm64-binary: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'push' && (github.ref_name == 'develop' || github.ref_name == 'snapshot' || github.ref_name == '2.x') }} | ||
|
@@ -56,11 +63,15 @@ jobs: | |
id: qemu | ||
uses: docker/setup-qemu-action@v3 | ||
# step 3 | ||
- name: "Build arm-binary" | ||
- 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 -Prelease-seata -DskipTests clean install -U' | ||
mvn clean install \ | ||
-Prelease-seata \ | ||
-DskipTests \ | ||
-Dmaven.git-commit-id.skip=true \ | ||
-e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,8 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [ 8, 11, 17, 21 ] | ||
druid: [ | ||
1.2.20, | ||
1.2.19, | ||
#1.2.18, # Unit test triggered a bug in Druid, see the commit https://github.com/alibaba/druid/commit/6c493f852852fb287ed5fd31ee16c27ead0ea5cf | ||
#1.2.17, # Unit test triggered a bug in Druid, see the commit https://github.com/alibaba/druid/commit/6c493f852852fb287ed5fd31ee16c27ead0ea5cf | ||
|
@@ -50,15 +50,14 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
java-version: 8 | ||
# step 3 | ||
- name: "Print maven version" | ||
run: ./mvnw -version | ||
# step 4 | ||
- name: "Test with Maven" | ||
- name: "Test with Maven and Druid ${{ matrix.druid }}" | ||
run: | | ||
if [ "${{ matrix.java }}" == "8" ]; then | ||
./mvnw -T 4C clean test -Ddruid.version=${{ matrix.druid }} -Dcheckstyle.skip=false -Dlicense.skip=false -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
else | ||
./mvnw -T 4C clean test -Ddruid.version=${{ matrix.druid }} -Dcheckstyle.skip=true -Dlicense.skip=true -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
fi | ||
./mvnw -T 4C clean test \ | ||
-Ddruid.version=${{ matrix.druid }} \ | ||
-Dmaven.git-commit-id.skip=true \ | ||
-e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.