@@ -36,28 +36,31 @@ or  self-hosted runners that support Docker:
36
36
37
37
See the [notes on running this action with absolute paths](#running-with-absolute-paths) if you cannot use relative test result file paths.
38
38
39
- Use this for  (e.g. ` runs-on: macos-latest`) runners:
39
+ Use this for  (e.g. ` runs-on: macos-latest`) runners (no Docker needed) :
40
40
` ` ` yaml
41
41
- name: Publish Test Results
42
42
uses: EnricoMi/publish-unit-test-result-action/macos@v2
43
43
if: always()
44
44
with:
45
- files: |
46
- test-results/**/*.xml
47
- test-results/**/*.trx
48
- test-results/**/*.json
45
+ files: …
49
46
` ` `
50
47
51
- … and  (e.g. `runs-on : windows-latest`) runners:
48
+ … and  (e.g. `runs-on : windows-latest`) runners (no Docker needed) :
52
49
` ` ` yaml
53
50
- name: Publish Test Results
54
51
uses: EnricoMi/publish-unit-test-result-action/windows@v2
55
52
if: always()
56
53
with:
57
- files: |
58
- test-results\* *\* .xml
59
- test-results\* *\* .trx
60
- test-results\* *\* .json
54
+ files: …
55
+ ` ` `
56
+
57
+ For Windows **without PowerShell** installed, there is the Bash shell variant :
58
+ ` ` ` yaml
59
+ - name: Publish Test Results
60
+ uses: EnricoMi/publish-unit-test-result-action/windows/bash@v2
61
+ if: always()
62
+ with:
63
+ files: …
61
64
` ` `
62
65
63
66
For **self-hosted** Linux GitHub Actions runners **without Docker** installed, please use :
@@ -66,10 +69,7 @@ For **self-hosted** Linux GitHub Actions runners **without Docker** installed, p
66
69
uses: EnricoMi/publish-unit-test-result-action/linux@v2
67
70
if: always()
68
71
with:
69
- files: |
70
- test-results/**/*.xml
71
- test-results/**/*.trx
72
- test-results/**/*.json
72
+ files: …
73
73
` ` `
74
74
75
75
See the [notes on running this action as a non-Docker action](#running-as-a-non-docker-action).
@@ -870,3 +870,26 @@ is **deprecated**, please use an action appropriate for your operating system an
870
870
- Windows (Bash shell) : ` uses: EnricoMi/publish-unit-test-result-action/windows/bash@v2`
871
871
872
872
These are non-Docker variations of this action. For details, see section ["Running as a non-Docker action"](#running-as-a-non-docker-action) above.
873
+
874
+ The composite action was able to run on any operating system, as long as Bash shell is installed.
875
+ The same behaviour can be achieved with multiple steps, each for a specific operating system :
876
+
877
+ ` ` ` yaml
878
+ - name: Publish Test Results
879
+ uses: EnricoMi/publish-unit-test-result-action/linux@2
880
+ if: runner.os == 'Linux'
881
+ with:
882
+ files: test-results/**/*.xml
883
+
884
+ - name: Publish Test Results
885
+ uses: EnricoMi/publish-unit-test-result-action/macos@2
886
+ if: runner.os == 'macOS'
887
+ with:
888
+ files: test-results/**/*.xml
889
+
890
+ - name: Publish Test Results
891
+ uses: EnricoMi/publish-unit-test-result-action/windows/bash@2
892
+ if: runner.os == 'Windows'
893
+ with:
894
+ files: test-results/**/*.xml
895
+ ` ` `
0 commit comments