Skip to content

Commit

Permalink
[UNDERTOW-2416] Make the script fail if there are compilation errors …
Browse files Browse the repository at this point in the history
…in tests

Signed-off-by: Flavia Rainone <[email protected]>
  • Loading branch information
fl4via committed Jun 23, 2024
1 parent c25f8f3 commit 3d39540
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 3d39540

Please sign in to comment.