From 1367e723d7953fdf81d0788755c2a0a242ede162 Mon Sep 17 00:00:00 2001 From: Miroslav Pokorny Date: Wed, 1 May 2024 22:34:21 +1000 Subject: [PATCH] github-actions tail/upload ordering/naming improvements --- .github/workflows/build.yaml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index acfa2284f..579f0450c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -24,24 +24,38 @@ jobs: run: mvn dependency:resolve - name: Maven install - run: mvn install -Dmaven.javadoc.skip=true -B -V -e > output.txt + run: mvn install -Dmaven.javadoc.skip=true -B -V -e > maven-install-output.txt - name: Print logs if: ${{ always() }} run: | + tail -n 500 maven-install-output.txt tail -n 500 target/it-tests/junit-test/build.log - tail -n 500 output.txt + tail -n 500 target/it-tests/gwt-jar-test/build.log + tail -n 500 target/it-tests/timezone-test/build.log - uses: actions/upload-artifact@v2 if: failure() with: - name: build.log + name: maven-install-output.txt + path: maven-install-output.txt + + - uses: actions/upload-artifact@v2 + if: failure() + with: + name: gwt-jar-test-build.log + path: target/it-tests/gwt-jar-test/build.log + + - uses: actions/upload-artifact@v2 + if: failure() + with: + name: junit-test-build.log path: target/it-tests/junit-test/build.log - uses: actions/upload-artifact@v2 if: failure() with: - name: output.txt - path: output.txt + name: timezone-test-build.log + path: target/it-tests/timezone-test/build.log