Skip to content

Commit

Permalink
optimize: add license checker workflow (apache#4911)
Browse files Browse the repository at this point in the history
  • Loading branch information
slievrly authored Sep 7, 2022
1 parent de7d04f commit 13deea8
Show file tree
Hide file tree
Showing 43 changed files with 674 additions and 24 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/license-checker.yaml
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/[email protected]
with:
log: info
config: .licenserc.yaml
mode: check
# step 3
- name: Check Dependencies' License
uses: apache/skywalking-eyes/[email protected]
with:
log: info
config: .licenserc.yaml
mode: check
85 changes: 85 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#
# 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
- package.json
excludes:
- name: io.seata:*
13 changes: 13 additions & 0 deletions config/seata-config-core/src/main/resources/file.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 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.
service {
#transaction service group mapping
vgroupMapping.default_tx_group = "default"
Expand Down
13 changes: 13 additions & 0 deletions config/seata-config-core/src/main/resources/registry.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 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.
registry {
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa
type = "file"
Expand Down
13 changes: 13 additions & 0 deletions config/seata-config-core/src/test/resources/file-test-pro.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 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.
service {
#transaction service group mapping
vgroupMapping.default_tx_group = "default"
Expand Down
13 changes: 13 additions & 0 deletions config/seata-config-core/src/test/resources/file-test-yaml.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 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.
service {
#transaction service group mapping
vgroupMapping.default_tx_group = "default"
Expand Down
13 changes: 13 additions & 0 deletions config/seata-config-core/src/test/resources/file-test.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 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.
service {
#transaction service group mapping
vgroupMapping.default_tx_group = "default"
Expand Down
13 changes: 13 additions & 0 deletions config/seata-config-core/src/test/resources/file.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 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.
service {
#transaction service group mapping
vgroupMapping.default_tx_group = "default"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#Copyright 1999-2019 Seata.io Group.
#
#Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
14 changes: 14 additions & 0 deletions config/seata-config-core/src/test/resources/registry-test-yaml.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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.

registry:
type: file
file:
Expand Down
13 changes: 13 additions & 0 deletions config/seata-config-core/src/test/resources/registry-test.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 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.
registry {
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa
type = "file"
Expand Down
13 changes: 13 additions & 0 deletions config/seata-config-core/src/test/resources/registry.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 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.
registry {
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa
type = "file"
Expand Down
14 changes: 14 additions & 0 deletions config/seata-config-custom/src/test/resources/registry.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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.

config {
type = "custom"

Expand Down
15 changes: 15 additions & 0 deletions config/seata-config-spring-cloud/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Expand Down
15 changes: 15 additions & 0 deletions console/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Expand Down
14 changes: 14 additions & 0 deletions discovery/seata-discovery-custom/src/test/resources/registry.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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.

registry {
type = "custom"

Expand Down
16 changes: 15 additions & 1 deletion distribution/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# the Dockerfile support x86 & arrch64
# 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.
# the Dockerfile support x86 & arrch64


# build:
# 1. mvn -Prelease-seata -Dmaven.test.skip=true clean install -U
# 2. cd distribution/target/seata-server-xxx/seata/
Expand Down
Loading

0 comments on commit 13deea8

Please sign in to comment.