-
Notifications
You must be signed in to change notification settings - Fork 7
168 lines (143 loc) · 5.2 KB
/
report.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
name: Report on pull requests
on:
workflow_run:
workflows: [CI]
types:
- completed
jobs:
report:
name: Report
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: 'Checkout'
uses: actions/checkout@v4
with:
submodules: recursive
- name: 'Download build artifacts'
if: always()
uses: dawidd6/action-download-artifact@v2 # download artifacts
with:
name: build-artifact
run_id: ${{ github.event.workflow_run.id }}
- name: 'Download check artifacts'
if: always()
uses: dawidd6/action-download-artifact@v2 # download artifacts
with:
name: check-artifact
run_id: ${{ github.event.workflow_run.id }}
- name: 'Download test artifacts'
if: always()
uses: dawidd6/action-download-artifact@v2 # download artifacts
with:
name: test-artifact
run_id: ${{ github.event.workflow_run.id }}
- name: 'Logscan ensure logscan is executable'
if: always()
run: 'chmod +x .github/logscan.sh'
- name: 'Logscan TypeCheck Src'
if: always()
id: logscan_src
run: '.github/logscan.sh reports/typecheck.log'
- name: 'Logscan TypeCheck Examples'
if: always()
id: logscan_examples
run: '.github/logscan.sh reports/typecheck-examples.log'
- name: 'Logscan TypeCheck Tests'
if: always()
id: logscan_tests
run: '.github/logscan.sh reports/typecheck-tests.log'
- name: 'TypeCheck Src'
if: always()
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Typecheck Src
conclusion: ${{steps.logscan_src.conclusion}}
sha: ${{ github.event.workflow_run.head_sha }}
output: |
{"summary":"${{ steps.logscan_src.outputs.summary }}"}
- name: 'TypeCheck Examples'
if: always()
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Typecheck Examples
conclusion: ${{steps.logscan_examples.conclusion}}
sha: ${{ github.event.workflow_run.head_sha }}
output: |
{"summary":"${{ steps.logscan_examples.outputs.summary }}"}
- name: 'TypeCheck Tests'
if: always()
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Typecheck Tests
conclusion: ${{steps.logscan_tests.conclusion}}
sha: ${{ github.event.workflow_run.head_sha }}
output: |
{"summary":"${{ steps.logscan_tests.outputs.summary }}"}
- name: 'Analyze Src Code Linting Results'
if: always()
id: eslint_src
uses: ataylorme/eslint-annotate-action@v2
with:
report-json: "reports/eslint-src.json"
- name: 'Analyze Examples Code Linting Results'
if: always()
id: eslint_examples
uses: ataylorme/eslint-annotate-action@v2
with:
report-json: "reports/eslint-examples.json"
- name: 'Analyze Tests Code Linting Results'
if: always()
id: eslint_tests
uses: ataylorme/eslint-annotate-action@v2
with:
report-json: "reports/eslint-tests.json"
- name: 'Report Eslint Src'
if: always()
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: 'Eslint Src'
conclusion: ${{steps.eslint_src.conclusion}}
sha: ${{ github.event.workflow_run.head_sha }}
output: |
{"summary":"${{ steps.eslint_src.outputs.summary }}"}
- name: 'Report Eslint Examples'
if: always()
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: 'Eslint Examples'
conclusion: ${{steps.eslint_examples.conclusion}}
sha: ${{ github.event.workflow_run.head_sha }}
output: |
{"summary":"${{ steps.eslint_examples.outputs.summary }}"}
- name: 'Report Eslint Tests'
if: always()
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: 'Eslint Tests'
conclusion: ${{steps.eslint_tests.conclusion}}
sha: ${{ github.event.workflow_run.head_sha }}
output: |
{"summary":"${{ steps.eslint_tests.outputs.summary }}"}
- name: 'Upload coverage reports to Codecov'
if: always()
uses: codecov/codecov-action@v3
with:
directory: ./coverage/
override_pr: ${{ github.event.workflow_run.pull_requests[0].number }}
override_commit: ${{ github.event.workflow_run.head_sha }}
# - name: 'Report playwright test results'
# uses: daun/playwright-report-summary@v2
# with:
# report-file: playwright-report.json
# env:
# GITHUB_SHA: ${{ github.event.workflow_run.head_sha }}
# GITHUB_EVENT_NAME: ${{ github.event.workflow_run.event }}