Skip to content

Commit cf35627

Browse files
Migrate CI to Github Actions and enable coverage report (#365)
1 parent 11d149c commit cf35627

File tree

10 files changed

+23
-48
lines changed

10 files changed

+23
-48
lines changed

.coveralls.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,21 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
name: "CodeQL"
18+
name: "Continuous Integration"
1919

2020
on:
2121
push:
2222
branches:
2323
- develop
24-
paths-ignore:
25-
- 'docs/**'
2624
pull_request:
2725
branches:
2826
- develop
29-
paths-ignore:
30-
- 'docs/**'
31-
schedule:
32-
- cron: '30 5 * * *'
3327
workflow_dispatch:
3428

3529
jobs:
36-
analyze:
37-
name: Analyze
30+
build:
31+
name: Build
32+
3833
runs-on: ubuntu-latest
3934

4035
strategy:
@@ -49,11 +44,6 @@ jobs:
4944
- name: Checkout repository
5045
uses: actions/checkout@v2
5146

52-
- name: Set up JDK ${{ matrix.java }}
53-
uses: actions/setup-java@v1
54-
with:
55-
java-version: ${{ matrix.java }}
56-
5747
- name: Initialize CodeQL
5848
uses: github/codeql-action/init@v1
5949
with:
@@ -63,8 +53,16 @@ jobs:
6353
# queries: ./path/to/local/query, your-org/your-repo/queries@main
6454
languages: ${{ matrix.language }}
6555

56+
- name: Set up JDK ${{ matrix.java }}
57+
uses: actions/setup-java@v1
58+
with:
59+
java-version: ${{ matrix.java }}
60+
6661
- name: Build
67-
run: ./gradlew clean build
62+
run: ./gradlew clean build jacocoTestReport
6863

69-
- name: Perform CodeQL Analysis
64+
- name: Perform CodeQL analysis
7065
uses: github/codeql-action/analyze@v1
66+
67+
- name: Upload coverage report to codecov.io
68+
run: bash <(curl -s https://codecov.io/bash) || echo 'Failed to upload coverage report!'

.github/workflows/greetings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on: [pull_request, issues]
2323

2424
jobs:
2525
greeting:
26+
name: Greeting
2627
runs-on: ubuntu-latest
2728
steps:
2829
- uses: actions/first-interaction@v1

.travis.yml

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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Apache EventMesh (incubating)
22
[![Build Status](https://www.travis-ci.org/apache/incubator-eventmesh.svg?branch=develop)](https://www.travis-ci.org/github/apache/incubator-eventmesh.svg?branch=develop)
3+
[![CodeCov](https://codecov.io/gh/apache/incubator-eventmesh/branch/develop/graph/badge.svg)](https://codecov.io/gh/apache/incubator-eventmesh)
34
[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/context:java)
45
[![Total alerts](https://img.shields.io/lgtm/alerts/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/alerts/)
56
[![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://github.com/apache/incubator-eventmesh/releases)

README.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Apache EventMesh (Incubating)
22
[![Build Status](https://www.travis-ci.org/apache/incubator-eventmesh.svg?branch=develop)](https://www.travis-ci.org/github/apache/incubator-eventmesh.svg?branch=develop)
3+
[![CodeCov](https://codecov.io/gh/apache/incubator-eventmesh/branch/develop/graph/badge.svg)](https://codecov.io/gh/apache/incubator-eventmesh)
34
[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/context:java)
45
[![Total alerts](https://img.shields.io/lgtm/alerts/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/alerts/)
56
[![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://github.com/apache/incubator-eventmesh/releases)

build.gradle

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ buildscript {
2828
maven {
2929
url "https://plugins.gradle.org/m2/"
3030
}
31-
3231
}
3332

3433
dependencies {
@@ -63,7 +62,6 @@ allprojects {
6362

6463
compileJava.options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
6564

66-
6765
clean.doFirst {
6866
delete 'build'
6967
delete 'dist'
@@ -73,7 +71,6 @@ allprojects {
7371
if ((project.findProperty("snapshot") instanceof String) && (Boolean.valueOf(project.property("snapshot")))) {
7472
version = version + "-SNAPSHOT"
7573
}
76-
7774
}
7875

7976
task tar(type: Tar) {
@@ -96,7 +93,6 @@ task zip(type: Zip) {
9693
}
9794
}
9895

99-
10096
subprojects {
10197

10298
List fastjson = [
@@ -142,7 +138,6 @@ subprojects {
142138
"com.lmax:disruptor:3.4.2"
143139
]
144140

145-
146141
List common = [
147142
"commons-io:commons-io:2.4",
148143
"org.apache.commons:commons-text:1.9"
@@ -165,7 +160,6 @@ subprojects {
165160
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.4.7'
166161
}
167162

168-
169163
sourceSets {
170164
main {
171165
java.srcDirs = ['src/main/java']
@@ -183,17 +177,13 @@ subprojects {
183177

184178
jacoco {
185179
toolVersion = "0.8.6"
186-
reportsDir = file("$buildDir/reports/jacoco")
187180
}
188181

189182
jacocoTestReport {
190-
// sourceSets sourceSets.main
191-
// executionData files("$buildDir/jacoco/jacocoTest.exec")
192-
193183
reports {
194-
xml.enabled false
184+
xml.enabled true
195185
csv.enabled false
196-
html.destination file("${buildDir}/reports/jacoco/html")
186+
html.enabled false
197187
}
198188
}
199189

@@ -211,7 +201,7 @@ subprojects {
211201
// html.enabled true
212202
// }
213203
// }
214-
204+
//
215205
// sourceSets {
216206
// main {
217207
// java {
@@ -234,11 +224,8 @@ subprojects {
234224
// }
235225
//
236226
// }
237-
//
238-
//
239227
// }
240228

241-
242229
spotbugs {
243230
//toolVersion = '4.2.3'
244231
ignoreFailures = true

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Apache EventMesh (Incubating)
22
[![Build Status](https://www.travis-ci.org/apache/incubator-eventmesh.svg?branch=develop)](https://www.travis-ci.org/github/apache/incubator-eventmesh.svg?branch=develop)
3+
[![CodeCov](https://codecov.io/gh/apache/incubator-eventmesh/branch/develop/graph/badge.svg)](https://codecov.io/gh/apache/incubator-eventmesh)
34
[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/context:java)
45
[![Total alerts](https://img.shields.io/lgtm/alerts/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/alerts/)
56
[![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://github.com/apache/incubator-eventmesh/releases)

docs/cn/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Apache EventMesh (Incubating)
22
[![Build Status](https://www.travis-ci.org/apache/incubator-eventmesh.svg?branch=develop)](https://www.travis-ci.org/github/apache/incubator-eventmesh.svg?branch=develop)
3+
[![CodeCov](https://codecov.io/gh/apache/incubator-eventmesh/branch/develop/graph/badge.svg)](https://codecov.io/gh/apache/incubator-eventmesh)
34
[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/context:java)
45
[![Total alerts](https://img.shields.io/lgtm/alerts/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/alerts/)
56
[![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://github.com/apache/incubator-eventmesh/releases)

docs/en/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Apache EventMesh (Incubating)
22
[![Build Status](https://www.travis-ci.org/apache/incubator-eventmesh.svg?branch=develop)](https://www.travis-ci.org/github/apache/incubator-eventmesh.svg?branch=develop)
3+
[![CodeCov](https://codecov.io/gh/apache/incubator-eventmesh/branch/develop/graph/badge.svg)](https://codecov.io/gh/apache/incubator-eventmesh)
34
[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/context:java)
45
[![Total alerts](https://img.shields.io/lgtm/alerts/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/alerts/)
56
[![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://github.com/apache/incubator-eventmesh/releases)

0 commit comments

Comments
 (0)