File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 18
18
- name : Set up environment
19
19
uses : actions/setup-java@v1
20
20
with :
21
- java-version : ${{java-version}}
21
+ java-version : ${{ matrix. java-version }}
22
22
- name : Build with Gradle
23
23
run : ./gradlew buildPlugin
24
24
test :
32
32
java-version : 11
33
33
- name : Test with Gradle
34
34
run : ./gradlew test --info
35
+ - name : Upload coverage to Codecov
36
+ uses : codecov/codecov-action@v1
37
+ with :
38
+ file : build/reports/jacoco/test/jacocoTestReport.xml
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ This plugin adds an intention to open regular expressions on regex101.com
6
6
[ ![ Plugin downloads] ( https://img.shields.io/jetbrains/plugin/d/14461-open-regex101?style=flat-square )] ( https://plugins.jetbrains.com/plugin/14461-open-regex101 )
7
7
[ ![ Plugin stars] ( https://img.shields.io/jetbrains/plugin/r/stars/14461-open-regex101?style=flat-square )] ( https://plugins.jetbrains.com/plugin/14461-open-regex101 )
8
8
[ ![ Build status] ( https://img.shields.io/github/workflow/status/aesy/regex101-intellij/Continous%20Integration?style=flat-square )] ( https://github.com/aesy/regex101-intellij/actions )
9
+ [ ![ Test coverage] ( https://img.shields.io/codecov/c/github/aesy/regex101-intellij?style=flat-square )] ( https://codecov.io/github/aesy/regex101-intellij )
9
10
[ ![ MIT license] ( https://img.shields.io/github/license/aesy/regex101-intellij.svg?style=flat-square )] ( https://github.com/aesy/regex101-intellij/blob/master/LICENSE )
10
11
11
12
## Installation
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import org.jetbrains.intellij.tasks.*
2
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
3
4
4
plugins {
5
+ jacoco
5
6
kotlin(" jvm" ) version " 1.3.61"
6
7
id(" org.jetbrains.intellij" ) version " 0.4.21"
7
8
}
@@ -30,6 +31,12 @@ intellij {
30
31
}
31
32
32
33
tasks {
34
+ jacocoTestReport {
35
+ reports {
36
+ xml.isEnabled = true
37
+ }
38
+ }
39
+
33
40
withType<Wrapper > {
34
41
gradleVersion = " 6.5"
35
42
}
@@ -47,6 +54,7 @@ tasks {
47
54
48
55
withType<Test > {
49
56
useJUnitPlatform()
57
+ finalizedBy(jacocoTestReport)
50
58
}
51
59
52
60
withType<PublishTask > {
You can’t perform that action at this time.
0 commit comments