File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
src/functionalTest/java/org/scoverage Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313 build :
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ include :
18+ - name : ' ignore warnings'
19+ additional-check-args : ' '
20+ continue-on-error : false
21+ - name : ' fail on warning'
22+ additional-check-args : ' --warning-mode=fail -PfailOnWarning'
23+ continue-on-error : true
1424
1525 runs-on : ubuntu-latest
26+ continue-on-error : ${{ matrix.continue-on-error }}
1627
1728 steps :
1829 - uses : actions/checkout@v2
2435 - name : Grant execute permission for gradlew
2536 run : chmod +x gradlew
2637 - name : Build with Gradle
27- run : ./gradlew --info --stacktrace check
38+ run : ./gradlew --info --stacktrace check ${{ matrix.additional-check-args }}
Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ task functionalTest(type: Test) {
104104 showStandardStreams = System . env. CI == ' true'
105105 }
106106
107+ systemProperty ' failOnWarning' , project. hasProperty(' failOnWarning' )
108+
107109 mustRunAfter crossScalaVersionTest
108110}
109111check. dependsOn functionalTest
@@ -206,4 +208,4 @@ idea.project.settings {
206208 taskTriggers {
207209 beforeBuild fixIdeaPluginClasspath, pluginUnderTestMetadata
208210 }
209- }
211+ }
Original file line number Diff line number Diff line change @@ -127,7 +127,11 @@ private void configureArguments(String... arguments) {
127127 fullArguments .add ("-PjunitVersion=5.3.2" );
128128 fullArguments .add ("-PjunitPlatformVersion=1.3.2" );
129129 fullArguments .add ("-PscalatestVersion=3.0.8" );
130- fullArguments .add ("--warning-mode=all" );
130+ if (Boolean .parseBoolean (System .getProperty ("failOnWarning" ))) {
131+ fullArguments .add ("--warning-mode=fail" );
132+ } else {
133+ fullArguments .add ("--warning-mode=all" );
134+ }
131135 fullArguments .addAll (Arrays .asList (arguments ));
132136
133137 runner .withArguments (fullArguments );
You can’t perform that action at this time.
0 commit comments