From 3e0b97b68b09488ec3ee5d5059f990b2a4e2880e Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Sat, 13 Feb 2021 11:01:02 +0100 Subject: CI: Only pass if there are no Gradle warnings Adds the CLI option --warning-mode=fail to the Gradle build job. This ensures the build only passes if no warnings are cast. See https://docs.gradle.org/current/userguide/command_line_interface.html#sec:command_line_warnings --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 86f32e37b..661b9b8ce 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -18,4 +18,4 @@ jobs: with: java-version: 1.8 - name: Build with Gradle - run: ./gradlew build + run: ./gradlew build --warning-mode=fail -- cgit v1.2.3