File tree Expand file tree Collapse file tree 3 files changed +14
-38
lines changed Expand file tree Collapse file tree 3 files changed +14
-38
lines changed Original file line number Diff line number Diff line change 1
- name : Build
1
+ name : Analyze
2
2
3
3
on :
4
4
pull_request :
5
5
branches :
6
6
- main
7
+ push :
8
+ branches :
9
+ - main
7
10
8
11
jobs :
9
12
build :
23
26
- name : Install dependencies
24
27
run : dart pub global run melos bootstrap
25
28
26
- - name : Linting
29
+ - name : Analyze
27
30
run : dart analyze .
Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches :
6
6
- main
7
+ push :
8
+ branches :
9
+ - main
7
10
8
11
jobs :
9
12
build :
@@ -37,14 +40,19 @@ jobs:
37
40
- name : Create coverage directory
38
41
run : mkdir -p coverage
39
42
40
- - name : Merge coverage
43
+ - name : Run unit tests
41
44
run : |
42
45
melos exec rm -rf coverage
43
46
melos run unit_test
47
+
48
+ - name : Calculate and merge coverage
49
+ if : success()
50
+ run : |
44
51
melos exec --dir-exists="coverage" -- bash -c 'dart pub global run coverde filter --input coverage/lcov.info --output coverage/filtered.lcov.info --filters .g.dart'
45
52
melos exec --dir-exists="coverage" -- bash -c 'dart pub global run coverde value -i coverage/filtered.lcov.info > coverage/result.txt'
46
53
47
54
- name : Upload coverage to Codecov
55
+ if : success()
48
56
uses : codecov/codecov-action@v3
49
57
with :
50
58
token : ${{ secrets.CODECOV_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments