From 3c690876adb2023befe176ad4efef66b0bc2bdc8 Mon Sep 17 00:00:00 2001 From: "Empting Eelco (ETAS-ECM/XPC-Fe2)" Date: Tue, 27 Jan 2026 11:02:19 +0100 Subject: [PATCH 1/5] Enable uploading test results --- .github/workflows/tests.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ac79960..13c4491 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,6 +21,13 @@ on: required: false default: "test //..." type: string + result-paths: + description: "Custom paths to upload test results from (e.g.: 'bazel-testlogs/**/*.xml')" + required: false + default: | + bazel-testlogs/**/*.xml + bazel-testlogs/**/test.log + type: string jobs: unit-tests: @@ -45,5 +52,15 @@ jobs: run: | echo "Running: bazel ${{ inputs.bazel-target }}" bazel ${{ inputs.bazel-target }} + continue-on-error: true # Always continue to upload artifacts - + - name: Upload Bazel test artifacts + if: always() + uses: actions/upload-artifact@v4 + with: + name: Bazel Test Results + path: | + ${{ inputs.result-paths }} + if-no-files-found: warn + retention-days: 0 + compression-level: 6 From 15fef40fda94230c2e44574ee60dcd4a96812d7e Mon Sep 17 00:00:00 2001 From: "Empting Eelco (ETAS-ECM/XPC-Fe2)" Date: Fri, 30 Jan 2026 09:00:42 +0100 Subject: [PATCH 2/5] Make uploading optional --- .github/workflows/tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 489e989..63ae870 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,6 +21,10 @@ on: required: false default: "test //..." type: string + upload-name: + description: "Custom name to upload test results to (e.g. Bazel Test Results). Leave as default to skip upload." + required: false + default: "NO UPLOAD OF TEST RESULTS CONFIGURED" result-paths: description: "Custom paths to upload test results from (e.g.: 'bazel-testlogs/**/*.xml')" required: false @@ -56,10 +60,10 @@ jobs: continue-on-error: true # Always continue to upload artifacts - name: Upload Bazel test artifacts - if: always() + if: ${{ inputs.upload-name != 'NO UPLOAD OF TEST RESULTS CONFIGURED' }} uses: actions/upload-artifact@v4 with: - name: Bazel Test Results + name: ${{ inputs.upload-name }} path: | ${{ inputs.result-paths }} if-no-files-found: warn From 46ede1ac2a54a366b83a4e2f86565fa7ab895770 Mon Sep 17 00:00:00 2001 From: "Empting Eelco (ETAS-ECM/XPC-Fe2)" Date: Fri, 30 Jan 2026 09:04:13 +0100 Subject: [PATCH 3/5] Fix error --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 63ae870..bcdee2c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,6 +25,7 @@ on: description: "Custom name to upload test results to (e.g. Bazel Test Results). Leave as default to skip upload." required: false default: "NO UPLOAD OF TEST RESULTS CONFIGURED" + type: string result-paths: description: "Custom paths to upload test results from (e.g.: 'bazel-testlogs/**/*.xml')" required: false From c7429bab1141d206a69b5fde0eec3aabeace5bd4 Mon Sep 17 00:00:00 2001 From: "Empting Eelco (ETAS-ECM/XPC-Fe2)" Date: Fri, 30 Jan 2026 14:06:24 +0100 Subject: [PATCH 4/5] Fix upload-artifact version --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bcdee2c..3a9a0ba 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -62,7 +62,7 @@ jobs: - name: Upload Bazel test artifacts if: ${{ inputs.upload-name != 'NO UPLOAD OF TEST RESULTS CONFIGURED' }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: ${{ inputs.upload-name }} path: | From 2a22cd7655b830af9eb6c3c2eb15f007b219dd31 Mon Sep 17 00:00:00 2001 From: "Empting Eelco (ETAS-ECM/XPC-Fe2)" Date: Mon, 9 Feb 2026 11:29:33 +0100 Subject: [PATCH 5/5] Remove retention days --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3a9a0ba..459c851 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -68,5 +68,4 @@ jobs: path: | ${{ inputs.result-paths }} if-no-files-found: warn - retention-days: 0 compression-level: 6