From 3d39540db66f4383729200543a4e9be7191cba15 Mon Sep 17 00:00:00 2001 From: Flavia Rainone Date: Sat, 22 Jun 2024 08:25:42 -0300 Subject: [PATCH 1/2] [UNDERTOW-2416] 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 3c09200e8e..2462a2721b 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 && echo "Found errors, see above" || echo "No errors found" + ! $(grep -q '^\\[ERROR\\]'outfile.txt ) - name: Tar Maven Repo shell: bash run: tar -czf maven-repo.tgz -C ~ .m2/repository From b6184bbb194780ebe6ffb78bcdaf9cf77a5290c6 Mon Sep 17 00:00:00 2001 From: Flavia Rainone Date: Sun, 23 Jun 2024 06:01:08 -0300 Subject: [PATCH 2/2] fixup --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2462a2721b..078d5d4397 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,8 +37,8 @@ jobs: run: | mvn -U -B -fae -DskipTests -Dfindbugs clean install | tee outfile.txt echo "Checking for build errors" - grep '^\\[ERROR\\]' outfile.txt && echo "Found errors, see above" || echo "No errors found" - ! $(grep -q '^\\[ERROR\\]'outfile.txt ) + grep '^\[ERROR\]\|^Error:' outfile.txt && echo "Found errors, see above" || echo "No errors found" + ! $(grep -q '^\[ERROR\]\|^Error:' outfile.txt ) - name: Tar Maven Repo shell: bash run: tar -czf maven-repo.tgz -C ~ .m2/repository