16
16
strategy :
17
17
fail-fast : false
18
18
matrix :
19
- test_set : [ general , firestore ]
19
+ extra_flag : [ nofirestore , firestore ]
20
20
runs-on : ubuntu-20.04
21
- name : generate-report-${{ matrix.test_set }}
21
+ name : generate-report-${{ matrix.extra_flag }}
22
22
steps :
23
23
- name : Setup python
24
24
uses : actions/setup-python@v4
@@ -41,24 +41,14 @@ jobs:
41
41
timeout_minutes : 20
42
42
max_attempts : 3
43
43
shell : bash
44
- command : |
45
- extra_flags=
46
- if [[ "${{ matrix.test_set }}" == "firestore" ]]; then
47
- extra_flags=--firestore
48
- fi
49
- python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDays }} --write_cache build_status_short.cache ${extra_flags}
44
+ command : python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDays }} --write_cache build_status_short.cache --${{ matrix.extra_flag }}
50
45
- name : Fetch extended GitHub jobs (with retry)
51
46
uses : nick-invision/retry@v2
52
47
with :
53
48
timeout_minutes : 80
54
49
max_attempts : 3
55
50
shell : bash
56
- command : |
57
- extra_flags=
58
- if [[ "${{ matrix.test_set }}" == "firestore" ]]; then
59
- extra_flags=--firestore
60
- fi
61
- python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDaysExtended }} --write_cache build_status.cache ${extra_flags}
51
+ command : python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDaysExtended }} --write_cache build_status.cache --${{ matrix.extra_flag }}
62
52
- name : Generate report files
63
53
run : |
64
54
python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDays }} --output_markdown --read_cache build_status_short.cache > report_short.md
105
95
shell : bash
106
96
command : |
107
97
issue_title='[C++] Nightly Integration Testing Report'
108
- if [[ "${{ matrix.test_set }}" == "firestore" ]]; then
98
+ if [[ "${{ matrix.extra_flag }}" == "firestore" ]]; then
109
99
issue_title='[C++] Nightly Integration Testing Report for Firestore'
110
100
fi
111
101
python3 scripts/gha/update_issue_comment.py --token ${{ github.token }} --issue_title "${issue_title}" --start_tag build-dashboard-comment-start --end_tag build-dashboard-comment-end < comment.md
0 commit comments