S8 integrate pinned Palantir formatting through OpenRewrite
This commit is contained in:
@@ -98,6 +98,8 @@ class CiTests {
|
||||
f.fake.mavenFailure = true;
|
||||
try { f.pipeline.verify(); throw new AssertionError("Expected failure"); }
|
||||
catch (Commands.Failure error) { equal(42,error.exitCode); }
|
||||
equal(List.of("mvn", "-B", "-ntp", "-Dformat.mode=check", "clean", "verify"),
|
||||
f.fake.calls.stream().filter(a -> a.getFirst().equals("mvn")).findFirst().orElseThrow());
|
||||
equal(false,Files.exists(f.root.resolve("ci/artifacts/verified-commit")));
|
||||
equal(0L,f.calls("build")); equal(0L,f.calls("push"));
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ class Pipeline {
|
||||
try {
|
||||
requirePlatform(); isolateDocker();
|
||||
check(commit.equals(capture("git", "rev-parse", "HEAD")), "Checkout does not match pushed commit");
|
||||
run("java", "-version"); run("node", "--version"); run("mvn", "-B", "-ntp", "clean", "verify");
|
||||
run("java", "-version"); run("node", "--version"); run("mvn", "-B", "-ntp", "-Dformat.mode=check", "clean", "verify");
|
||||
CiTests.run();
|
||||
Path frontend = root.resolve("agiledancers-fe");
|
||||
verifyFrontend();
|
||||
|
||||
Reference in New Issue
Block a user