From 1a8a3bd3125e779e8ef737befd06ee0a4350f776 Mon Sep 17 00:00:00 2001 From: Flavia Rainone Date: Sat, 22 Jun 2024 08:25:42 -0300 Subject: [PATCH] Make the script fail if there are compilation errors in tests Signed-off-by: Flavia Rainone --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bef520869..f29868a237 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,11 @@ jobs: - name: Print Version run: mvn -v - name: Build - run: mvn -U -B -fae -DskipTests -Dfindbugs clean install + run: | + mvn -U -B -fae -DskipTests -Dfindbugs clean install | tee outfile.txt + echo "Checking for build errors" + grep ERROR outfile.txt + ! $(grep -q ERROR outfile.txt ) - name: Tar Maven Repo shell: bash run: tar -czf maven-repo.tgz -C ~ .m2/repository