Skip to content

Commit b008ae2

Browse files
authored
[ISSUE #517] Remove travis CI and add license-checker workflow (#518)
* Remove travis CI and add license-checker workflow * Add coverage workflow * Make license-checker can pass * Make license-checker can pass
1 parent 694d4a1 commit b008ae2

7 files changed

Lines changed: 145 additions & 38 deletions

File tree

.asf.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
116
notifications:
217
commits: commits@rocketmq.apache.org
318
issues: commits@rocketmq.apache.org

.github/workflows/coverage.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
name: Coverage
18+
on:
19+
pull_request:
20+
types: [opened, reopened, synchronize]
21+
push:
22+
branches: [master, develop]
23+
jobs:
24+
calculate-coverage:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@master
28+
- name: Set up JDK 8
29+
uses: actions/setup-java@v2
30+
with:
31+
java-version: "8"
32+
distribution: "adopt"
33+
cache: "maven"
34+
- name: Generate coverage report
35+
run: mvn -B test -T 2C --file pom.xml
36+
- name: Upload to Codecov
37+
uses: codecov/codecov-action@v3
38+
with:
39+
fail_ci_if_error: true
40+
verbose: true
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
name: License checker
18+
19+
on:
20+
pull_request:
21+
branches:
22+
- master
23+
24+
jobs:
25+
check-license:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v3
29+
- name: Check License Header
30+
uses: apache/skywalking-eyes@v0.2.0
31+
with:
32+
log: info
33+
config: .licenserc.yaml

.github/workflows/maven.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
315

416
name: Java CI with Maven
517

.licenserc.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
header:
20+
license:
21+
spdx-id: Apache-2.0
22+
copyright-owner: Apache Software Foundation
23+
24+
paths-ignore:
25+
- '.gitignore'
26+
- 'CONTRIBUTING.md'
27+
- 'LICENSE'
28+
- 'NOTICE'
29+
- '**/*.md'
30+
- 'BUILDING'
31+
- '.github/**'
32+
- '*/src/test/resources/certs/*'
33+
- 'src/test/**/*.log'
34+
- '*/src/test/resources/META-INF/service/*'
35+
- '*/src/main/resources/META-INF/service/*'
36+
- '**/*/spring.factories'
37+
- '**/target/**'
38+
- '**/*.iml'
39+
- 'docs/**'
40+
- '**/application.properties'
41+
42+
43+
comment: on-failure

.travis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@
169169
<configuration>
170170
<excludes>
171171
<exclude>.gitignore</exclude>
172-
<exclude>.travis.yml</exclude>
173172
<exclude>.asf.yaml</exclude>
174173
<exclude>CONTRIBUTING.md</exclude>
175174
<exclude>**/README.md</exclude>

0 commit comments

Comments
 (0)