@@ -27,17 +27,21 @@ jobs:
27
27
28
28
- id : install
29
29
name : Install dependencies
30
- run : pub get --no-precompile
30
+ run : dart pub get --no-precompile
31
31
32
32
- name : Validate dependencies
33
33
run : dart run dependency_validator
34
34
if : always() && steps.install.outcome == 'success'
35
35
36
36
- name : Analyze project source
37
- run : if [ ${{ matrix.sdk }} = '2.7.2' ]; then pub global activate tuneup && tuneup check --ignore-infos; else dart analyze; fi
37
+ run : if [ ${{ matrix.sdk }} = '2.7.2' ]; then dart pub global activate tuneup && tuneup check --ignore-infos; else dart analyze; fi
38
38
if : always() && steps.install.outcome == 'success'
39
39
40
40
test_ddc :
41
+ permissions :
42
+ id-token : write
43
+ contents : read
44
+ checks : write
41
45
runs-on : ubuntu-latest
42
46
strategy :
43
47
fail-fast : false
@@ -54,10 +58,10 @@ jobs:
54
58
55
59
- id : install
56
60
name : Install dependencies
57
- run : pub get --no-precompile
61
+ run : dart pub get --no-precompile
58
62
59
63
- name : Run tests (DDC)
60
- run : pub run build_runner test -- --file-reporter json:reports/${{ matrix.sdk }}/ddc/test-results.json
64
+ run : dart run build_runner test -- --file-reporter json:reports/${{ matrix.sdk }}/ddc/test-results.json
61
65
if : always() && steps.install.outcome == 'success'
62
66
63
67
- name : Upload Unit Test Results
76
80
reporter : dart-json
77
81
78
82
test_dart2js :
83
+ permissions :
84
+ id-token : write
85
+ contents : read
86
+ checks : write
79
87
runs-on : ubuntu-latest
80
88
strategy :
81
89
fail-fast : false
@@ -92,10 +100,10 @@ jobs:
92
100
93
101
- id : install
94
102
name : Install dependencies
95
- run : pub get --no-precompile
103
+ run : dart pub get --no-precompile
96
104
97
105
- name : Run tests (dart2js)
98
- run : pub run build_runner test -r -- --file-reporter json:reports/${{ matrix.sdk }}/dart2js/test-results.json
106
+ run : dart run build_runner test -r -- --file-reporter json:reports/${{ matrix.sdk }}/dart2js/test-results.json
99
107
if : always() && steps.install.outcome == 'success'
100
108
101
109
- name : Upload Unit Test Results
0 commit comments