From 56995d91a4f1529488480048e2fb64c344be2287 Mon Sep 17 00:00:00 2001 From: Eric T Date: Thu, 21 Aug 2025 11:01:50 +0100 Subject: [PATCH] ci: show build log errors --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de887e8c7..e5cd07e69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,14 @@ jobs: distribution: 'temurin' cache: 'maven' - name: Build with Maven - run: ./mvnw -q verify + run: ./mvnw -q verify |& tee build.log + - name: Show build log + if: failure() + run: | + echo "Build error" + grep '^\[ERROR\]' build.log || true + echo "Build log tail" + tail -n 200 build.log - name: Upload surefire reports if: always() uses: actions/upload-artifact@v4 @@ -41,4 +48,4 @@ jobs: if: ${{ !cancelled() }} uses: codecov/test-results-action@v1 with: - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }}