@@ -27,48 +27,47 @@ jobs:
27
27
- os : macos-latest
28
28
sdk : beta
29
29
steps :
30
- - uses : dart-lang/setup-dart@v1
31
- with :
32
- sdk : ${{ matrix.sdk }}
33
- - uses : actions/checkout@v3
34
- # coverage with 'chrome' platform hangs the build
35
- - name : Test (VM and browser)
36
- if : runner.os != 'macOS'
37
- run : |
38
- dart pub get
39
- dart test -p chrome --test-randomize-ordering-seed=random --chain-stack-traces
40
- dart test -p vm --coverage=coverage --test-randomize-ordering-seed=random --chain-stack-traces
41
- dart pub run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib
30
+ - uses : dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin @v1
31
+ with :
32
+ sdk : ${{ matrix.sdk }}
33
+ - uses : actions/checkout@v3
34
+ # coverage with 'chrome' platform hangs the build
35
+ - name : Test (VM and browser)
36
+ if : runner.os != 'macOS'
37
+ run : |
38
+ dart pub get
39
+ dart test -p chrome --test-randomize-ordering-seed=random --chain-stack-traces
40
+ dart test -p vm --coverage=coverage --test-randomize-ordering-seed=random --chain-stack-traces
41
+ dart pub run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib
42
42
43
- - name : Install webdev
44
- run : dart pub global activate webdev
43
+ - name : Install webdev
44
+ run : dart pub global activate webdev
45
45
46
- - name : Build example
47
- run : |
48
- cd example
49
- dart pub get
50
- dart compile exe bin/example.dart
46
+ - name : Build example
47
+ run : |
48
+ cd example
49
+ dart pub get
50
+ dart compile exe bin/example.dart
51
51
52
- # if condition because of: The pubspec.lock file has changed since the .dart_tool/package_config.json file was generated, please run "pub get" again.
53
- - name : Build Web example
54
- if : runner.os != 'Windows'
55
- run : |
56
- cd example_web
57
- dart pub get
58
- webdev build
52
+ # if condition because of: The pubspec.lock file has changed since the .dart_tool/package_config.json file was generated, please run "pub get" again.
53
+ - name : Build Web example
54
+ if : runner.os != 'Windows'
55
+ run : |
56
+ cd example_web
57
+ dart pub get
58
+ webdev build
59
59
60
- - uses : codecov/codecov-action@v2
61
- if : runner.os == 'Linux' && matrix.sdk == 'stable'
62
- with :
63
- name : sentry
64
- files : ./dart/coverage/lcov.info
60
+ - uses : codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # pin@v3
61
+ if : runner.os == 'Linux' && matrix.sdk == 'stable'
62
+ with :
63
+ name : sentry
64
+ files : ./dart/coverage/lcov.info
65
65
66
- # 1.2.1
67
- - uses : VeryGoodOpenSource/very_good_coverage@feed99cc060453828a8f12e74b404baace8e4502
68
- if : runner.os == 'Linux' && matrix.sdk == 'stable'
69
- with :
70
- path : " ./dart/coverage/lcov.info"
71
- min_coverage : 85
66
+ -
uses :
VeryGoodOpenSource/very_good_coverage@feed99cc060453828a8f12e74b404baace8e4502 # [email protected]
67
+ if : runner.os == 'Linux' && matrix.sdk == 'stable'
68
+ with :
69
+ path : ' ./dart/coverage/lcov.info'
70
+ min_coverage : 85
72
71
73
72
analyze :
74
73
runs-on : ubuntu-latest
77
76
run :
78
77
working-directory : ./dart
79
78
steps :
80
- - uses : dart-lang/setup-dart@v1
79
+ - uses : dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@ v1
81
80
with :
82
81
sdk : stable
83
82
- uses : actions/checkout@v3
91
90
timeout-minutes : 20
92
91
steps :
93
92
- uses : actions/checkout@v3
94
- - uses : axel-op/dart-package-analyzer@v3
93
+ - uses : axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2 # pin@ v3
95
94
id : analysis
96
95
with :
97
96
githubToken : ${{ secrets.GITHUB_TOKEN }}
0 commit comments