Skip to content

Commit

Permalink
Ignore warnings at the beginning of the build caused by actions/setup…
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jun 28, 2023
1 parent a4b31e2 commit 52314c9
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,13 @@ public void testContinuousDeliveryFriendlyVersionsAreWarningFreeWithoutBuildCons
assertEquals("1.0.0.changelist", props.getProperty("project.version"));

List<String> lines = verifier.loadFile(new File(testDir, "log.txt"), false);
boolean seenScanning = false;
for (String line : lines) {
assertFalse(String.join("\n", lines), line.contains("WARNING"));
seenScanning |= line.contains("Scanning for projects");
if (seenScanning) {
assertFalse(String.join("\n", lines), line.contains("WARNING"));
}

}
}

Expand Down Expand Up @@ -88,8 +93,12 @@ public void testContinuousDeliveryFriendlyVersionsAreWarningFreeWithBuildConsume
assertEquals("1.0.0.changelist", props.getProperty("project.version"));

List<String> lines = verifier.loadFile(new File(testDir, "log-bc.txt"), false);
boolean seenScanning = false;
for (String line : lines) {
assertFalse(String.join("\n", lines), line.contains("WARNING"));
seenScanning |= line.contains("Scanning for projects");
if (seenScanning) {
assertFalse(String.join("\n", lines), line.contains("WARNING"));
}
}
}
}

0 comments on commit 52314c9

Please sign in to comment.