File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ #### Description
2
+
3
+ ` describe the purpose of the change here `
4
+
5
+ Resolves ` <issue nr here> `
6
+
7
+ ##### PR Checklist
8
+ - [ ] Tests added
9
+ - [ ] [ Changelog] ( CHANGELOG.md ) updated
Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - develop
8
+ pull_request :
9
+
10
+ env :
11
+ MAVEN_CLI_OPTS : " --batch-mode"
12
+ MAVEN_OPTS : " -Dmaven.repo.local=.m2/repository"
13
+ JAVA_ADDITIONAL_OPTS : " -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS"
14
+ FF_USE_FASTZIP : " true"
15
+
16
+ jobs :
17
+ build :
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v3
21
+
22
+ - name : Set up JDK 11
23
+ uses : actions/setup-java@v3
24
+ with :
25
+ java-version : ' 11'
26
+ distribution : ' adopt'
27
+ cache : maven
28
+
29
+ - name : Build
30
+ run : mvn $MAVEN_CLI_OPTS $JAVA_ADDITIONAL_OPTS compile
31
+
32
+ - name : Tests
33
+ run : |
34
+ mvn $MAVEN_CLI_OPTS $JAVA_ADDITIONAL_OPTS test integration-test
35
+ cat target/site/jacoco/index.html | grep -o 'Total[^%]*%'
36
+
37
+ - name : Add coverage to PR
38
+ id : jacoco
39
+ uses : madrapps/jacoco-report@v1.2
40
+ with :
41
+ paths : ${{ github.workspace }}/target/site/jacoco/jacoco.xml
42
+ token : ${{ secrets.GITHUB_TOKEN }}
43
+ min-coverage-overall : 40
44
+ min-coverage-changed-files : 60
You can’t perform that action at this time.
0 commit comments