|
1 | | -# Created with package:mono_repo v3.1.0-beta.1 |
| 1 | +# Created with package:mono_repo v3.1.0-beta.2 |
2 | 2 | name: Dart CI |
3 | | - |
4 | 3 | on: |
5 | 4 | push: |
6 | | - branches: [ master ] |
| 5 | + branches: |
| 6 | + - $default-branch |
7 | 7 | pull_request: |
8 | | - |
| 8 | + schedule: |
| 9 | + - cron: "0 0 * * 0" |
9 | 10 | defaults: |
10 | 11 | run: |
11 | 12 | shell: bash |
| 13 | +env: |
| 14 | + PUB_ENVIRONMENT: bot.github |
12 | 15 |
|
13 | 16 | jobs: |
14 | 17 | job_001: |
| 18 | + name: mono_repo self validate |
| 19 | + runs-on: ubuntu-latest |
| 20 | + steps: |
| 21 | + - uses: cedx/setup-dart@v2 |
| 22 | + with: |
| 23 | + release-channel: stable |
| 24 | + version: latest |
| 25 | + - run: dart --version |
| 26 | + - uses: actions/checkout@v2 |
| 27 | + - run: pub global activate mono_repo 3.1.0-beta.2 |
| 28 | + - run: pub global run mono_repo generate --validate |
| 29 | + job_002: |
15 | 30 | name: "OS: linux; SDK: dev; PKGS: _test_yaml, checked_yaml, example, json_annotation, json_serializable; TASKS: [`dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-warnings --fatal-infos .`]" |
16 | 31 | runs-on: ubuntu-latest |
17 | 32 | steps: |
18 | 33 | - uses: cedx/setup-dart@v2 |
19 | 34 | with: |
20 | 35 | release-channel: dev |
| 36 | + - run: dart --version |
21 | 37 | - uses: actions/checkout@v2 |
22 | 38 | - env: |
23 | 39 | PKGS: _test_yaml checked_yaml example json_annotation json_serializable |
24 | 40 | TRAVIS_OS_NAME: linux |
25 | 41 | run: tool/ci.sh dartfmt dartanalyzer_0 |
26 | | - job_002: |
| 42 | + job_003: |
27 | 43 | name: "OS: linux; SDK: 2.7.0; PKGS: _test_yaml, checked_yaml, example, json_annotation, json_serializable; TASKS: `dartanalyzer --fatal-warnings .`" |
28 | 44 | runs-on: ubuntu-latest |
29 | 45 | steps: |
30 | 46 | - uses: cedx/setup-dart@v2 |
31 | 47 | with: |
32 | 48 | release-channel: stable |
33 | 49 | version: "2.7.0" |
| 50 | + - run: dart --version |
34 | 51 | - uses: actions/checkout@v2 |
35 | 52 | - env: |
36 | 53 | PKGS: _test_yaml checked_yaml example json_annotation json_serializable |
37 | 54 | TRAVIS_OS_NAME: linux |
38 | 55 | run: tool/ci.sh dartanalyzer_1 |
39 | | - job_003: |
| 56 | + job_004: |
40 | 57 | name: "OS: linux; SDK: 2.7.0; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test`" |
41 | 58 | runs-on: ubuntu-latest |
42 | 59 | steps: |
43 | 60 | - uses: cedx/setup-dart@v2 |
44 | 61 | with: |
45 | 62 | release-channel: stable |
46 | 63 | version: "2.7.0" |
| 64 | + - run: dart --version |
47 | 65 | - uses: actions/checkout@v2 |
48 | 66 | - env: |
49 | 67 | PKGS: _test_yaml checked_yaml example json_serializable |
50 | 68 | TRAVIS_OS_NAME: linux |
51 | 69 | run: tool/ci.sh test_0 |
52 | | - job_004: |
| 70 | + job_005: |
53 | 71 | name: "OS: linux; SDK: dev; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test`" |
54 | 72 | runs-on: ubuntu-latest |
55 | 73 | steps: |
56 | 74 | - uses: cedx/setup-dart@v2 |
57 | 75 | with: |
58 | 76 | release-channel: dev |
| 77 | + - run: dart --version |
59 | 78 | - uses: actions/checkout@v2 |
60 | 79 | - env: |
61 | 80 | PKGS: _test_yaml checked_yaml example json_serializable |
62 | 81 | TRAVIS_OS_NAME: linux |
63 | 82 | run: tool/ci.sh test_0 |
64 | | - job_005: |
| 83 | + job_006: |
65 | 84 | name: "OS: linux; SDK: 2.7.0; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test --run-skipped -t presubmit-only test/ensure_build_test.dart`" |
66 | 85 | runs-on: ubuntu-latest |
67 | 86 | steps: |
68 | 87 | - uses: cedx/setup-dart@v2 |
69 | 88 | with: |
70 | 89 | release-channel: stable |
71 | 90 | version: "2.7.0" |
| 91 | + - run: dart --version |
72 | 92 | - uses: actions/checkout@v2 |
73 | 93 | - env: |
74 | 94 | PKGS: _test_yaml checked_yaml example json_serializable |
75 | 95 | TRAVIS_OS_NAME: linux |
76 | 96 | run: tool/ci.sh test_1 |
77 | | - job_006: |
| 97 | + job_007: |
78 | 98 | name: "OS: linux; SDK: dev; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test --run-skipped -t presubmit-only test/ensure_build_test.dart`" |
79 | 99 | runs-on: ubuntu-latest |
80 | 100 | steps: |
81 | 101 | - uses: cedx/setup-dart@v2 |
82 | 102 | with: |
83 | 103 | release-channel: dev |
| 104 | + - run: dart --version |
84 | 105 | - uses: actions/checkout@v2 |
85 | 106 | - env: |
86 | 107 | PKGS: _test_yaml checked_yaml example json_serializable |
87 | 108 | TRAVIS_OS_NAME: linux |
88 | 109 | run: tool/ci.sh test_1 |
89 | | - job_007: |
| 110 | + job_008: |
90 | 111 | name: "OS: linux; SDK: 2.7.0; PKG: json_serializable; TASKS: `pub run test -p chrome`" |
91 | 112 | runs-on: ubuntu-latest |
92 | 113 | steps: |
93 | 114 | - uses: cedx/setup-dart@v2 |
94 | 115 | with: |
95 | 116 | release-channel: stable |
96 | 117 | version: "2.7.0" |
| 118 | + - run: dart --version |
97 | 119 | - uses: actions/checkout@v2 |
98 | 120 | - env: |
99 | 121 | PKGS: json_serializable |
100 | 122 | TRAVIS_OS_NAME: linux |
101 | 123 | run: tool/ci.sh test_2 |
102 | | - job_008: |
| 124 | + job_009: |
103 | 125 | name: "OS: linux; SDK: dev; PKG: json_serializable; TASKS: `pub run test -p chrome`" |
104 | 126 | runs-on: ubuntu-latest |
105 | 127 | steps: |
106 | 128 | - uses: cedx/setup-dart@v2 |
107 | 129 | with: |
108 | 130 | release-channel: dev |
| 131 | + - run: dart --version |
109 | 132 | - uses: actions/checkout@v2 |
110 | 133 | - env: |
111 | 134 | PKGS: json_serializable |
|
0 commit comments