-
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.
- Loading branch information
Showing
398 changed files
with
7,324 additions
and
2,444 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
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,27 @@ | ||
name: License checker | ||
|
||
on: | ||
pull_request: | ||
branches: [ develop, master ] | ||
|
||
jobs: | ||
check-license: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# step 1 | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
# step 2 | ||
- name: Check License Header | ||
uses: apache/skywalking-eyes/header@25edfc2fd8d52fb266653fb5f6c42da633d85c07 | ||
with: | ||
log: info | ||
config: .licenserc.yaml | ||
mode: check | ||
# step 3 | ||
- name: Check Dependencies' License | ||
uses: apache/skywalking-eyes/dependency@25edfc2fd8d52fb266653fb5f6c42da633d85c07 | ||
with: | ||
log: info | ||
config: .licenserc.yaml | ||
mode: check |
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,57 @@ | ||
name: "Publishes" | ||
|
||
on: | ||
push: | ||
branches: [ snapshot, "*.*.*" ] | ||
#tags: [ "*" ] | ||
|
||
#This schedule only takes effect in the default branch | ||
schedule: | ||
- cron: '0 16 * * *' #GMT+0 | ||
|
||
jobs: | ||
publish: | ||
name: "Publish" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
type: [ "OSSRH", "image" ] | ||
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 | ||
server-password: OSSRH_PASSWORD | ||
|
||
# step 3 for type=OSSRH | ||
- name: "Import GPG-SECRET-KEY, Package and Publish-To-OSSRH" | ||
if: matrix.type == 'OSSRH' | ||
env: | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USER }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
run: | | ||
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import; | ||
./mvnw -T 4C clean deploy -Prelease,release-by-github-actions -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn | ||
# step 4 for type=image | ||
- name: "Package and Publish-Image-To-DockerHub" | ||
if: matrix.type == 'image' | ||
env: | ||
IMAGE_NAME: openjdk:8u342 | ||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} | ||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} | ||
run: | | ||
if [ "${{ github.ref_name }}" == "develop" ] || [ "${{ github.ref_name }}" == "snapshot" ]; then | ||
./mvnw -T 4C clean package -Pimage -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
else | ||
./mvnw -T 4C clean package -Pimage,release-image -DskipTests -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# | ||
# Copyright 1999-2019 Seata.io Group. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
header: | ||
license: | ||
spdx-id: Apache-2.0 | ||
copyright-owner: Seata.io | ||
content: | | ||
Copyright 1999-2019 Seata.io Group. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
paths-ignore: | ||
- '.gitignore' | ||
- '.gitattributes' | ||
- '.travis.yml' | ||
- 'codecov.yml' | ||
- 'CONTRIBUTING.md' | ||
- 'CONTRIBUTING_CN.md' | ||
- 'CODE_OF_CONDUCT.md' | ||
- 'README.md' | ||
- 'LICENSE' | ||
- 'NOTICE' | ||
- '**/*.md' | ||
- '.github/**' | ||
#SPI、spring.factories、spring-configuration-metadata.json、additional-spring-configuration-metadata.json | ||
- '**/src/test/resources/META-INF/**' | ||
- '**/src/main/resources/META-INF/**' | ||
- '**/target/**' | ||
- '**/*.iml' | ||
- 'mvnw' | ||
- 'mvnw.cmd' | ||
- '*.sh' | ||
- 'changes/**' | ||
- 'style/**' | ||
- 'script/**' | ||
- 'seata-plugins/**' | ||
- '.mvn/**' | ||
- 'sessionStore/**' | ||
- 'distribution/LICENSE-BIN' | ||
- 'distribution/NOTICE-BIN' | ||
- 'test/src/test/resources/**' | ||
- 'serializer/seata-serializer-protobuf/src/main/resources/protobuf/io/seata/protocol/transcation/*.proto' | ||
- 'saga/seata-saga-statemachine-designer/node_modules/**' | ||
- 'node_modules/**' | ||
- 'saga/seata-saga-statemachine-designer/**' | ||
- '**/src/test/resources/statelang/**' | ||
- 'console/src/main/resources/static/console-fe/**' | ||
- '**/io/seata/sqlparser/antlr/**/*.g4' | ||
- '**/io/seata/sqlparser/antlr/mysql/parser/*' | ||
- '**/integration/**/*.proto' | ||
- 'console/src/main/resources/static/**' | ||
- 'ext/apm-seata-skywalking-plugin/config/agent.config' | ||
- 'server/src/main/resources/lua/redislocker/redislock.lua' | ||
|
||
|
||
comment: on-failure | ||
dependency: | ||
files: | ||
- pom.xml | ||
- saga/seata-saga-statemachine-designer/package.json | ||
- console/src/main/resources/static/console-fe/package.json | ||
excludes: | ||
- name: io.seata:* |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Seata | ||
Copyright 2019-2022 Seata.io Group. | ||
|
||
This product includes software developed at | ||
The Apache Software Foundation (http://www.apache.org/). |
Oops, something went wrong.