diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c09200e8e..078d5d4397 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\]\|^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