-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yml
132 lines (122 loc) · 5.14 KB
/
action.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: Publish Test Results
inputs:
repo-name:
type: string
required: true
name:
type: string
default: Test Results
commit:
type: string
default: ${{ github.sha }}
skip-unit:
type: boolean
default: false
skip-integration:
type: boolean
default: false
skip-performance:
type: boolean
default: false
runs:
using: "composite"
steps:
# Install compatible Python for macOS
- name: Install Python 3.12
if: ${{ runner.os == 'macOS' }}
uses: actions/setup-python@v5
with:
python-version: 3.12
# Unit
- name: Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
if: ${{ runner.os == 'Linux' && inputs.skip-unit == 'false' }}
with:
check_name: Unit Tests - ${{ inputs.name }}
commit: ${{ inputs.commit }}
files: |
common/${{ inputs.repo-name }}/test-results/unit/**/*.xml
common/${{ inputs.repo-name }}/test-results/unit/**/*.trx
common/${{ inputs.repo-name }}/test-results/unit/**/*.json
- name: Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: ${{ runner.os == 'Windows' && inputs.skip-unit == 'false' }}
with:
check_name: Unit Tests - ${{ inputs.name }}
commit: ${{ inputs.commit }}
files: |
common/${{ inputs.repo-name }}/test-results/unit/**/*.xml
common/${{ inputs.repo-name }}/test-results/unit/**/*.trx
common/${{ inputs.repo-name }}/test-results/unit/**/*.json
- name: Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/macos@v2
if: ${{ runner.os == 'macOS' && inputs.skip-unit == 'false' }}
with:
check_name: Unit Tests - ${{ inputs.name }}
commit: ${{ inputs.commit }}
files: |
common/${{ inputs.repo-name }}/test-results/unit/**/*.xml
common/${{ inputs.repo-name }}/test-results/unit/**/*.trx
common/${{ inputs.repo-name }}/test-results/unit/**/*.json
# Integration
- name: Integration Test Results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
if: ${{ runner.os == 'Linux' && inputs.skip-integration == 'false' }}
with:
check_name: Integration Tests - ${{ inputs.name }}
commit: ${{ inputs.commit }}
files: |
common/${{ inputs.repo-name }}/test-results/integration/**/*.xml
common/${{ inputs.repo-name }}/test-results/integration/**/*.trx
common/${{ inputs.repo-name }}/test-results/integration/**/*.json
- name: Integration Test Results
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: ${{ runner.os == 'Windows' && inputs.skip-integration == 'false' }}
with:
check_name: Integration Tests - ${{ inputs.name }}
commit: ${{ inputs.commit }}
files: |
common/${{ inputs.repo-name }}/test-results/integration/**/*.xml
common/${{ inputs.repo-name }}/test-results/integration/**/*.trx
common/${{ inputs.repo-name }}/test-results/integration/**/*.json
- name: Integration Test Results
uses: EnricoMi/publish-unit-test-result-action/macos@v2
if: ${{ runner.os == 'macOS' && inputs.skip-integration == 'false' }}
with:
check_name: Integration Tests - ${{ inputs.name }}
commit: ${{ inputs.commit }}
files: |
common/${{ inputs.repo-name }}/test-results/integration/**/*.xml
common/${{ inputs.repo-name }}/test-results/integration/**/*.trx
common/${{ inputs.repo-name }}/test-results/integration/**/*.json
# Performance
- name: Performance Test Results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
if: ${{ runner.os == 'Linux' && inputs.skip-performance == 'false' }}
with:
check_name: Performance Tests - ${{ inputs.name }}
commit: ${{ inputs.commit }}
files: |
common/${{ inputs.repo-name }}/test-results/performance/**/*.xml
common/${{ inputs.repo-name }}/test-results/performance/**/*.trx
common/${{ inputs.repo-name }}/test-results/performance/**/*.json
- name: Performance Test Results
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: ${{ runner.os == 'Windows' && inputs.skip-performance == 'false' }}
with:
check_name: Performance Tests - ${{ inputs.name }}
commit: ${{ inputs.commit }}
files: |
common/${{ inputs.repo-name }}/test-results/performance/**/*.xml
common/${{ inputs.repo-name }}/test-results/performance/**/*.trx
common/${{ inputs.repo-name }}/test-results/performance/**/*.json
- name: Performance Test Results
uses: EnricoMi/publish-unit-test-result-action/macos@v2
if: ${{ runner.os == 'macOS' && inputs.skip-performance == 'false' }}
with:
check_name: Performance Tests - ${{ inputs.name }}
commit: ${{ inputs.commit }}
files: |
common/${{ inputs.repo-name }}/test-results/performance/**/*.xml
common/${{ inputs.repo-name }}/test-results/performance/**/*.trx
common/${{ inputs.repo-name }}/test-results/performance/**/*.json