S2 EsLint implementation
All checks were successful
Build, test and publish / verify (push) Successful in 1m40s
All checks were successful
Build, test and publish / verify (push) Successful in 1m40s
This commit is contained in:
@@ -69,10 +69,7 @@ class Pipeline {
|
||||
run("java", "-version"); run("node", "--version"); run("mvn", "-B", "-ntp", "clean", "verify");
|
||||
CiTests.run();
|
||||
Path frontend = root.resolve("agiledancers-fe");
|
||||
commands.execute(List.of("npm", "ci"), frontend, env, null, true).checked();
|
||||
commands.execute(List.of("npm", "test", "--", "--reporters=default", "--reporters=junit",
|
||||
"--output-file=unit-results/junit.xml"), frontend, env, null, true).checked();
|
||||
commands.execute(List.of("npm", "run", "build"), frontend, env, null, true).checked();
|
||||
verifyFrontend();
|
||||
String platform = env.get("TARGET_PLATFORM");
|
||||
run("docker", "build", "--platform", platform, "--target", "prebuilt", "--label",
|
||||
"org.opencontainers.image.revision=" + commit, "-t", backendImage, ".");
|
||||
@@ -101,6 +98,14 @@ class Pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
void verifyFrontend() throws Exception {
|
||||
Path frontend = root.resolve("agiledancers-fe");
|
||||
commands.execute(List.of("npm", "ci"), frontend, env, null, true).checked();
|
||||
commands.execute(List.of("npm", "run", "lint"), frontend, env, null, true).checked();
|
||||
commands.execute(List.of("npm", "test", "--", "--reporters=default", "--reporters=junit",
|
||||
"--output-file=unit-results/junit.xml"), frontend, env, null, true).checked();
|
||||
commands.execute(List.of("npm", "run", "build"), frontend, env, null, true).checked();
|
||||
}
|
||||
void waitForApplication() throws Exception {
|
||||
for (int i = 0; i < 60; i++) {
|
||||
if (result(false,"docker", "exec", runName + "-frontend", "wget", "-q", "-O", "-",
|
||||
|
||||
Reference in New Issue
Block a user