-
Notifications
You must be signed in to change notification settings - Fork 8.9k
test: add test-os.yml for OS
#6081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
0c4e206
cherry pick
wangliang181230 0a79354
modify 2.x.md
wangliang181230 c1a2f82
add `test-os.yml`
wangliang181230 fb8b717
modify 2.x.md
wangliang181230 64386ab
Update 2.x.md
wangliang181230 976a70f
upgrade bytebuddy to `1.14.10`
wangliang181230 8036e0e
Enable the experimental of 'net.byte-buddy:byte-buddy'
wangliang181230 605b54d
Enable the experimental of 'net.byte-buddy:byte-buddy'
wangliang181230 b5f4481
revert and Fixed version number of 'byte-buddy'
wangliang181230 e181b66
fix dependency
wangliang181230 813dda0
add test for alpine-linux
wangliang181230 9a9e984
pull alpine:latest
wangliang181230 f247af5
fix
wangliang181230 f08a439
print
wangliang181230 8b8710d
Merge branch '2.x' into test-os-2.x
funky-eyes 62a77d0
remove test-alpine-linux
wangliang181230 494df2c
optimize
wangliang181230 84692b3
optimize log
wangliang181230 208cd29
Revert "optimize log"
wangliang181230 093c8cb
optimize log
wangliang181230 05a8770
Merge remote-tracking branch 'upstream/2.x' into test-os-2.x
wangliang181230 b37e94f
optimize Version.isAboveOrEqualVersion150
wangliang181230 5426f69
Merge remote-tracking branch 'upstream/2.x' into test-os-2.x
wangliang181230 c281d6b
optimize ci script
wangliang181230 1fd741a
fix ci script
wangliang181230 ef61c29
revert
wangliang181230 af82725
Merge remote-tracking branch 'upstream/2.x' into test-os-2.x
wangliang181230 1158a37
optimize log and unit-test
wangliang181230 cc2ed4b
optimize unit-test
wangliang181230 51d49e2
upgrade kotlin-maven-plugin to 1.9.21
wangliang181230 e2cfcdc
remove kotlin-maven-plugin.version from test.yml
wangliang181230 9a1ae70
Merge branch '2.x' into test-os-2.x
wangliang181230 810fe98
fix unit-test for redis
wangliang181230 d981c53
enable test on windows-latest os
wangliang181230 9313f27
optimize test-os.yml
wangliang181230 d27416e
optimize
wangliang181230 4f5e6e2
fix ci for windows-latest
wangliang181230 5fb53f0
revert
wangliang181230 757a801
添加springboot3.2.0的CI
wangliang181230 c81d4f0
小调整。
wangliang181230 5335636
小调整。
wangliang181230 6c48c13
步骤名中,拼接java、druid等的版本号。
wangliang181230 e64e180
Merge branch '2.x' into test-os-2.x
xingfudeshi 6bd7637
Merge branch '2.x' into test-os-2.x
wangliang181230 04c2c18
optimize build.yml
wangliang181230 851bd02
modify `install` to `test`
wangliang181230 0c49363
merge `test.yml` and `test-os.yml`
wangliang181230 ca55ac3
test springboot3.x in macos and windows
wangliang181230 5467164
尝试修复test.yml在windows-latest中执行失败的问题。
wangliang181230 d913c39
Revert "尝试修复test.yml在windows-latest中执行失败的问题。"
wangliang181230 dacc717
尝试修复test.yml在windows-latest中执行失败的问题。
wangliang181230 6d84e29
尝试修复test.yml在windows-latest中执行失败的问题。
wangliang181230 11a3e65
Revert "尝试修复test.yml在windows-latest中执行失败的问题。"
wangliang181230 f02bdf2
try fix test.yml in windows-latest
wangliang181230 ce10158
try fix
wangliang181230 155bf70
try fix
wangliang181230 e0459f5
try fix
wangliang181230 99ab3e8
Adjusting the order of os and springboot
wangliang181230 913e522
fix test.yml
wangliang181230 bc12d52
并行执行test.yml
wangliang181230 9a1b17c
Merge branch '2.x' into test-os-2.x
slievrly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 -Dmaven.git-commit-id.skip=true -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 -Dmaven.git-commit-id.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 -Dmaven.git-commit-id.skip=true 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 hidden or 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 -Dmaven.git-commit-id.skip=true -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 -Dmaven.git-commit-id.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 contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.