File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
src/test/java/com/codacy/utils Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Run Tests and send coverage
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+
8
+ runs-on : ubuntu-latest
9
+ environment : production
10
+
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - name : Set up JDK
14
+ uses : actions/setup-java@v3
15
+ with :
16
+ java-version : ' 8'
17
+ distribution : ' temurin'
18
+ cache : maven
19
+ - name : Test with Maven
20
+ run : mvn clean test
21
+
22
+ - name : Codacy Coverage Reporter
23
+ shell : bash
24
+ run : |
25
+ CODACY_PROJECT_TOKEN=${{ secrets.CODACY_PROJECT_TOKEN }} \
26
+ bash <(curl -Ls https://coverage.codacy.com/get.sh) report
27
+
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ public void shouldAddNumbers() {
10
10
Math math = new Math (23 );
11
11
12
12
assertEquals (7 , math .magicAdd (3 , 4 ));
13
+ assertEquals (8 , math .magicAdd (4 , 4 ));
13
14
}
14
15
15
16
// Uncomment this to have 100% coverage
You can’t perform that action at this time.
0 commit comments