Skip to content

Commit

Permalink
Make the script fail if there are compilation errors in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Flavia Rainone <[email protected]>
  • Loading branch information
fl4via committed Jun 22, 2024
1 parent 85d0925 commit c1ff04a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1ff04a

Please sign in to comment.