forked from 4paradigm/OpenMLDB
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.19 KB
/
publish-test-result-from-fork-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
on:
workflow_call:
inputs:
commit:
required: true
type: string
files:
required: true
type: string
event_name:
required: true
type: string
check_name:
required: true
type: string
comment_title:
required: true
type: string
run_id:
required: true
type: number
permissions:
checks: write
pull-requests: write
# required by download step to access artifacts API
actions: read
jobs:
test-results:
runs-on: ubuntu-latest
steps:
- name: Download and Extract Artifacts
uses: dawidd6/action-download-artifact@v3
with:
run_id: ${{ inputs.run_id }}
path: artifacts
- name: Publish UT Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
commit: ${{ inputs.commit }}
files: ${{ inputs.files }}
check_name: ${{ inputs.check_name }}
comment_title: ${{ inputs.comment_title }}
event_name: ${{ inputs.event_name }}
# u should upload the event file with upload name 'event-file'
event_file: artifacts/event-file/event.json