1616 strategy :
1717 fail-fast : false
1818 matrix :
19- test_set : [ general , firestore ]
19+ extra_flag : [ nofirestore , firestore ]
2020 runs-on : ubuntu-20.04
21- name : generate-report-${{ matrix.test_set }}
21+ name : generate-report-${{ matrix.extra_flag }}
2222 steps :
2323 - name : Setup python
2424 uses : actions/setup-python@v4
@@ -41,24 +41,14 @@ jobs:
4141 timeout_minutes : 20
4242 max_attempts : 3
4343 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 }}
5045 - name : Fetch extended GitHub jobs (with retry)
5146 uses : nick-invision/retry@v2
5247 with :
5348 timeout_minutes : 80
5449 max_attempts : 3
5550 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 }}
6252 - name : Generate report files
6353 run : |
6454 python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDays }} --output_markdown --read_cache build_status_short.cache > report_short.md
10595 shell : bash
10696 command : |
10797 issue_title='[C++] Nightly Integration Testing Report'
108- if [[ "${{ matrix.test_set }}" == "firestore" ]]; then
98+ if [[ "${{ matrix.extra_flag }}" == "firestore" ]]; then
10999 issue_title='[C++] Nightly Integration Testing Report for Firestore'
110100 fi
111101 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