From 85b7addaf00af339be9356ed4278d0fc406247c9 Mon Sep 17 00:00:00 2001 From: Mickael Istria Date: Sat, 10 Feb 2024 01:06:08 +0100 Subject: [PATCH] Test execution report --- .github/workflows/ci-dom-javac.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci-dom-javac.yml b/.github/workflows/ci-dom-javac.yml index f882a43a0cf..cd3c839244b 100644 --- a/.github/workflows/ci-dom-javac.yml +++ b/.github/workflows/ci-dom-javac.yml @@ -10,15 +10,6 @@ on: branches: [ 'dom-based-operations', 'dom-with-javac' ] jobs: - event_file: - name: "Upload Event File" - runs-on: ubuntu-latest - steps: - - name: Upload - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 - with: - name: Event File - path: ${{ github.event_path }} build-dom-javac: runs-on: ubuntu-latest steps: @@ -48,11 +39,10 @@ jobs: run: | mvn clean install --batch-mode -f org.eclipse.jdt.core.compiler.batch -DlocalEcjVersion=99.99 mvn -U clean verify --batch-mode --fail-at-end -Ptest-on-javase-20 -Pbree-libs -Papi-check -Djava.io.tmpdir=$WORKSPACE/tmp -Dproject.build.sourceEncoding=UTF-8 -Dtycho.surefire.argLine="--add-modules ALL-SYSTEM -Dcompliance=1.8,11,17,20 -Djdt.performance.asserts=disabled" -Dcbi-ecj-version=99.99 - - name: Upload Test Results for Linux - if: always() - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 - with: - name: test-results-linux-dom-javac - if-no-files-found: warn - path: | - ${{ github.workspace }}/**/target/surefire-reports/*.xml + - name: Test Report + if: success() || failure() # run this step even if previous step failed + run: | + echo ▶️ TESTS RUN: $(xmllint --xpath 'string(/testsuite/@tests)' */target/surefire-reports/TEST-*.xml | awk '{n += $1}; END{print n}' -) + echo ❌ FAILURES: $(xmllint --xpath 'string(/testsuite/@failures)' */target/surefire-reports/TEST-*.xml | awk '{n += $1}; END{print n}' -) + echo 💥 ERRORS: $(xmllint --xpath 'string(/testsuite/@errors)' */target/surefire-reports/TEST-*.xml | awk '{n += $1}; END{print n}' -) + echo 🛑 SKIPPED: $(xmllint --xpath 'string(/testsuite/@skipped)' */target/surefire-reports/TEST-*.xml | awk '{n += $1}; END{print n}' -) \ No newline at end of file