11name : nightly-ci
2+ run-name : ${{ github.event.inputs.test_mode == 'true' && format('[Test Mode] {0}', github.workflow) || github.workflow }}
23
3- # concurrency:
4- # group: ${{ github.workflow }}-${{ github.ref }}
5- # cancel-in-progress: false
4+ concurrency :
5+ group : ${{ github.workflow }}-${{ github.ref }}
6+ cancel-in-progress : false
67
78on :
8- # schedule:
9- # - cron: '0 4 * * *'
10- workflow_dispatch :
9+ schedule :
10+ - cron : ' 0 4 * * *'
11+ # The dispatch is only for test purpose
12+ # workflow_dispatch:
13+ # inputs:
14+ # test_mode:
15+ # description: 'Run in test mode'
16+ # type: boolean
17+ # default: false
1118
1219permissions :
1320 contents : read
@@ -16,22 +23,59 @@ permissions:
1623jobs :
1724 e2e-android :
1825 uses : ./.github/workflows/android.yaml
26+ with :
27+ nightly_test_mode : ${{ github.event.inputs.test_mode == 'true' }}
1928 secrets : inherit
2029 e2e-ios :
2130 uses : ./.github/workflows/ios.yaml
31+ with :
32+ nightly_test_mode : ${{ github.event.inputs.test_mode == 'true' }}
2233 secrets : inherit
2334 e2e-macos :
2435 uses : ./.github/workflows/macos.yaml
36+ with :
37+ nightly_test_mode : ${{ github.event.inputs.test_mode == 'true' }}
2538 secrets : inherit
2639 e2e-web :
2740 uses : ./.github/workflows/web.yaml
41+ with :
42+ nightly_test_mode : ${{ github.event.inputs.test_mode == 'true' }}
2843 secrets : inherit
2944 e2e-windows :
3045 uses : ./.github/workflows/windows.yaml
46+ with :
47+ nightly_test_mode : ${{ github.event.inputs.test_mode == 'true' }}
3148 secrets : inherit
3249 e2e-fdc :
3350 uses : ./.github/workflows/e2e_tests_fdc.yaml
51+ with :
52+ nightly_test_mode : ${{ github.event.inputs.test_mode == 'true' }}
3453 secrets : inherit
3554 e2e-pipeline :
3655 uses : ./.github/workflows/e2e_tests_pipeline.yaml
56+ if : ${{ github.event.inputs.test_mode != 'true' }}
3757 secrets : inherit
58+
59+ update-dashboard :
60+ runs-on : ubuntu-latest
61+ if : ${{ always() && !cancelled() }}
62+ needs : [e2e-android, e2e-ios, e2e-macos, e2e-web, e2e-windows, e2e-fdc, e2e-pipeline]
63+ steps :
64+ - uses : actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
65+ - uses : subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff
66+ with :
67+ channel : ' stable'
68+ - name : Update Dashboard Issue
69+ env :
70+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71+ TEST_MODE : ${{ github.event.inputs.test_mode == 'true' }}
72+ ANDROID_STATUS : ${{ needs.e2e-android.result }}
73+ IOS_STATUS : ${{ needs.e2e-ios.result }}
74+ MACOS_STATUS : ${{ needs.e2e-macos.result }}
75+ WEB_STATUS : ${{ needs.e2e-web.result }}
76+ WINDOWS_STATUS : ${{ needs.e2e-windows.result }}
77+ FDC_STATUS : ${{ needs.e2e-fdc.result }}
78+ PIPELINE_STATUS : ${{ needs.e2e-pipeline.result }}
79+ REPO : ${{ github.repository }}
80+ run : |
81+ dart .github/workflows/scripts/nightly_issue_dashboard.dart
0 commit comments