File tree Expand file tree Collapse file tree 4 files changed +26
-15
lines changed Expand file tree Collapse file tree 4 files changed +26
-15
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ name: Dart CI
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches :
6
+ - ' master'
7
+ - ' test_consume_*'
6
8
pull_request :
7
- branches : [ master ]
9
+ branches :
10
+ - ' *'
8
11
9
12
jobs :
10
13
build :
@@ -32,18 +35,20 @@ jobs:
32
35
33
36
- name : Verify formatting
34
37
run : dart format --output=none --line-length=120 --set-exit-if-changed .
35
- if : always() && ${{ matrix.sdk }} == 'stable' && steps.install.outcome == 'success'
38
+ if : ${{ matrix.sdk == '2.13.4' }} && steps.install.outcome == 'success'
36
39
37
40
- name : Analyze project source
38
41
run : dart analyze
39
42
if : always() && steps.install.outcome == 'success'
40
43
41
44
- name : Run tests (DDC)
42
- run : dart pub run build_runner test -- --preset dartdevc
45
+ run : |
46
+ if [ ${{ matrix.sdk }} = '2.13.4' ]; then dart run build_runner test -- --preset dartdevc-legacy; else dart run build_runner test -- --preset dartdevc; fi
43
47
if : always() && steps.install.outcome == 'success'
44
48
timeout-minutes : 5
45
49
46
50
- name : Run tests (dart2js)
47
- run : dart pub run build_runner test --release -- --preset dart2js
51
+ run : |
52
+ if [ ${{ matrix.sdk }} = '2.13.4' ]; then dart run build_runner test -- --preset dart2js-legacy; else dart run build_runner test -- --preset dart2js; fi
48
53
if : always() && steps.install.outcome == 'success'
49
54
timeout-minutes : 5
Original file line number Diff line number Diff line change @@ -5,12 +5,18 @@ platforms:
5
5
- vm
6
6
7
7
presets :
8
- dart2js :
8
+ dart2js-legacy :
9
9
exclude_tags : no-dart2js
10
10
11
- dartdevc :
11
+ dartdevc-legacy :
12
12
exclude_tags : no-dartdevc
13
13
14
+ dart2js :
15
+ exclude_tags : no-dart2js && no-sdk-2-14-plus
16
+
17
+ dartdevc :
18
+ exclude_tags : no-dartdevc && no-sdk-2-14-plus
19
+
14
20
tags :
15
21
# Variadic children tests of >5 children that fail in Dart 2.7 for an unknown reason, seemingly an SDK bug.
16
22
# These tests pass in later Dart SDKs, so we ignore them when running in 2.7.
Original file line number Diff line number Diff line change @@ -6,17 +6,17 @@ environment:
6
6
sdk : " >=2.11.0 <3.0.0"
7
7
dependencies :
8
8
js : ^0.6.0
9
- meta : " >= 1.1.6 <1.7.0 " # Workaround to avoid https://github.com/dart-lang/sdk/issues/46142
9
+ meta : ^ 1.1.6
10
10
dev_dependencies :
11
- args : ^ 1.5.1
12
- build_runner : ^ 1.6.5
13
- build_test : ^ 0.10.8
14
- build_web_compilers : ^ 2.12.0
15
- dependency_validator : ^ 2.0.0
11
+ args : " >= 1.5.1 <3.0.0 "
12
+ build_runner : " >= 1.6.5 <3.0.0 "
13
+ build_test : " >= 0.10.8 <3.0.0 "
14
+ build_web_compilers : " >= 2.12.0 <4.0.0 "
15
+ dependency_validator : " >= 2.0.0 <4.0.0 "
16
16
matcher : ^0.12.5
17
17
mockito : " >=4.1.1 <6.0.0"
18
18
test : ^1.6.5
19
19
20
20
dependency_validator :
21
21
ignore :
22
- - meta # ignore the pin for now
22
+ - meta # ignore the pin for now
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ void sharedConsoleWarnTests({@required bool expectDeduplicateSyntheticEventWarni
129
129
]);
130
130
});
131
131
}
132
- }, tags: 'no-dart2js' );
132
+ }, tags: [ 'no-dart2js' , 'no-sdk-2-14-plus' ] );
133
133
134
134
test ('logs other duplicate messages properly' , () {
135
135
consoleWarn ('foo' );
You can’t perform that action at this time.
0 commit comments