-
-
Notifications
You must be signed in to change notification settings - Fork 496
34 lines (30 loc) · 1.02 KB
/
test-result-upload.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Template Testing Result Upload
on:
workflow_call:
inputs:
experimental:
required: false
type: boolean
default: false
description: 'Whether the tests are mandatory for the build to pass'
jobs:
build-binaries:
name: Build Binaries
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Download Test Results
uses: actions/download-artifact@v4
with:
pattern: ${{(inputs.experimental && 'experimental-') || ''}}test-results-*
path: test-results
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
check_name: Test Results ${{(inputs.experimental && '(Experimental)') || ''}}
files: test-results/**/*.trx
fail_on: ${{(inputs.experimental && 'nothing') || 'test failures'}}
check_run: ${{!inputs.experimental}}
comment_mode: ${{(inputs.experimental && 'off') || 'always'}}