From 0d4c812d3eed7f8fb56b390918eaeeb15d9df408 Mon Sep 17 00:00:00 2001 From: Bruno Wieczorek Date: Mon, 5 Aug 2024 20:05:14 +0200 Subject: [PATCH] [skip ci] Add test-report.yml GitHub action --- .github/workflows/check.yml | 9 ++++----- .github/workflows/test-report.yml | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/test-report.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index eb522d1..7262dce 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -35,9 +35,8 @@ jobs: run: ./gradlew :compose-remember-setting:desktopTest - name: Store reports - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 + if: always() with: - name: reports - path: | - **/build/reports/ - **/build/test-results/ + name: test-results + path: compose-remember-setting/build/test-results/desktopTest/*.xml diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml new file mode 100644 index 0000000..ace8e4b --- /dev/null +++ b/.github/workflows/test-report.yml @@ -0,0 +1,22 @@ +name: 'Test Report' +on: + workflow_run: + workflows: ['Check PR'] + types: + - completed + +permissions: + contents: read + actions: read + checks: write + +jobs: + report: + runs-on: ubuntu-latest + steps: + - uses: dorny/test-reporter@v1 + with: + artifact: test-results + name: Desktop Tests + path: '*.xml' + reporter: java-junit \ No newline at end of file