-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5712 from seata/1.7.0
release: release for 1.7.0
- Loading branch information
Showing
423 changed files
with
9,085 additions
and
1,866 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 |
---|---|---|
|
@@ -2,58 +2,65 @@ name: "build" | |
|
||
on: | ||
push: | ||
branches: [ develop, master ] | ||
branches: [ 2.x, develop, master ] | ||
pull_request: | ||
branches: [ develop, master ] | ||
branches: [ 2.x, develop, master ] | ||
|
||
jobs: | ||
build_arm64-binary: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }} | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Build arm-binary | ||
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 -Prelease-seata -Dmaven.test.skip=true clean install -U' | ||
# job 1: Test based on java 8 and 17. Do not checkstyle. | ||
build: | ||
name: "build" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [ 8, 11 ] | ||
java: [ 8, 17 ] | ||
steps: | ||
# step 1 | ||
- name: "Checkout" | ||
uses: actions/[email protected] | ||
|
||
uses: actions/checkout@v3 | ||
# step 2 | ||
- name: "Set up Java JDK" | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
|
||
# step 3 | ||
- name: "Print maven version" | ||
run: ./mvnw -version | ||
# step 4 | ||
- name: "Build with Maven" | ||
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 }}" == "11" ]; then | ||
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 | ||
# step 4 | ||
# step 5 | ||
- name: "Codecov" | ||
if: matrix.java == '8' | ||
if: matrix.java == '17' | ||
uses: codecov/[email protected] | ||
|
||
# job 2: Test on 'arm64v8/ubuntu' OS. | ||
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') }} | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
# step 1 | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
# step 2 | ||
- name: "Set up QEMU" | ||
id: qemu | ||
uses: docker/setup-qemu-action@v1 | ||
# step 3 | ||
- name: "Build arm-binary" | ||
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' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,25 +2,33 @@ name: License checker | |
|
||
on: | ||
pull_request: | ||
branches: [ develop, master ] | ||
branches: [ 2.x, develop, master ] | ||
|
||
jobs: | ||
check-license: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# step 1 | ||
# step 1 clear cache | ||
- name: Clear cache directory first before trying to restore from cache | ||
run: sudo rm -rf $(go env GOMODCACHE) && sudo rm -rf $(go env GOCACHE) | ||
shell: bash | ||
# step 2 checkout | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
# step 2 | ||
uses: actions/checkout@v3 | ||
# step 3 https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/ | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14.x' | ||
# step 4 check license | ||
- name: Check License Header | ||
uses: apache/skywalking-eyes/header@25edfc2fd8d52fb266653fb5f6c42da633d85c07 | ||
uses: apache/skywalking-eyes/header@8fc52baabc14c86294d96034bcc194cfa7f76b05 | ||
with: | ||
log: info | ||
config: .licenserc.yaml | ||
mode: check | ||
# step 3 | ||
# step 5 heck dependencies | ||
- name: Check Dependencies' License | ||
uses: apache/skywalking-eyes/dependency@25edfc2fd8d52fb266653fb5f6c42da633d85c07 | ||
uses: apache/skywalking-eyes/dependency@8fc52baabc14c86294d96034bcc194cfa7f76b05 | ||
with: | ||
log: info | ||
config: .licenserc.yaml | ||
|
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: "Publish Docker Image" | ||
|
||
on: | ||
push: | ||
branches: [ snapshot, "*.*.*" ] | ||
#tags: [ "*" ] | ||
|
||
#This schedule only takes effect in the default branch | ||
schedule: | ||
- cron: '0 16 * * *' #GMT+0 | ||
|
||
jobs: | ||
# job 1 | ||
publish-images-to-dockerhub: | ||
name: "Publish images to DockerHub" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [ 8, 17 ] | ||
steps: | ||
# step 1 | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
# step 2 | ||
- name: "Setup Java JDK" | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
# step 3 | ||
- name: "Print maven version" | ||
run: ./mvnw -version | ||
# step 4 based on java8 | ||
- name: "Publish images to DockerHub based on java8" | ||
if: matrix.java == 8 | ||
env: | ||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} | ||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} | ||
run: | | ||
if [ "${{ github.ref_name }}" == "develop" ] || [ "${{ github.ref_name }}" == "snapshot" || [ "${{ github.ref_name }}" == "2.x" ]; then | ||
./mvnw -T 4C clean package -Dimage.name=openjdk:8u342 -Pimage -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
else | ||
./mvnw -T 4C clean package -Dimage.name=openjdk:8u342 -Pimage,release-image-based-on-java8 -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
./mvnw -T 4C clean package -Dimage.name=openjdk:8u342-slim -Pimage,release-image-based-on-java8-slim -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
fi | ||
# step 4 based on java17 | ||
- name: "Publish images to DockerHub based on java17" | ||
if: ${{ matrix.java == 17 && github.ref_name != 'develop' && github.ref_name != 'snapshot' && github.ref_name != '2.x' }} | ||
env: | ||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} | ||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} | ||
run: | | ||
./mvnw -T 4C clean package -Dimage.name=openjdk:17.0.2 -Pimage,release-image-based-on-java17 -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
./mvnw -T 4C clean package -Dimage.name=openjdk:17.0.2-slim -Pimage,release-image-based-on-java17-slim -DskipTests -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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: "Publish OSSRH" | ||
|
||
on: | ||
push: | ||
branches: [ develop, 2.x, snapshot, "*.*.*" ] | ||
|
||
jobs: | ||
# job 1 | ||
publish-to-OSSRH: | ||
name: "Publish to OSSRH" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
# step 1 | ||
- name: "Checkout" | ||
uses: actions/[email protected] | ||
# step 2 | ||
- name: "Setup Java JDK" | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: 8 | ||
server-id: oss_seata | ||
server-username: OSSRH_USERNAME # Environment variable name for the username for authentication to the Apache Maven repository. Default is $GITHUB_ACTOR | ||
server-password: OSSRH_PASSWORD # Environment variable name for password or token for authentication to the Apache Maven repository. Default is $GITHUB_TOKEN | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
gpg-passphrase: GPG_PASSPHRASE # Environment variable name for the GPG private key passphrase. Default is $GPG_PASSPHRASE | ||
# step 3 | ||
- name: "Print maven version" | ||
run: ./mvnw -version | ||
# step 4 | ||
- name: "Publish to OSSRH" | ||
env: | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USER }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
run: | | ||
./mvnw -T 4C clean deploy -Prelease,release-by-github-actions -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.