Skip to content

Commit f096caf

Browse files
committed
test flow
1 parent 5859efe commit f096caf

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/dart.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,30 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19+
20+
- name: Analyze
21+
run: dartanalyzer --fatal-infos --fatal-warnings ./lib ./test
22+
23+
- name: Format code
24+
run: dartfmt -n ./lib ./test --set-exit-if-changed
25+
1926
- name: Install dependencies
2027
run: pub get
28+
29+
- name: Active coverage
30+
run: pub global activate coverage
31+
2132
- name: Run tests
22-
run: pub run test
33+
run: pub run test/rx_redux_test.dart
34+
35+
- name: TODO
36+
run: dart --disable-service-auth-codes --enable-vm-service=8111 --pause-isolates-on-exit test/rx_redux_test.dart &
37+
38+
- name: Collect coverage
39+
run: nohup pub global run coverage:collect_coverage --port=8111 --out=coverage.json --wait-paused --resume-isolates
40+
41+
- name: Format coverage
42+
run: pub global run coverage:format_coverage --lcov --in=coverage.json --out=lcov.info --packages=.packages --report-on=lib
43+
44+
- name: Upload to codecov.io
45+
run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)