Skip to content

Commit

Permalink
Update dart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 authored Jun 1, 2022
1 parent 75e9aea commit a72bdc2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: dart --version

- name: Install dependencies
run: pub get
run: dart pub get

- name: Analyze
if: ${{ matrix.sdk == 'stable' }}
Expand All @@ -43,18 +43,18 @@ jobs:
run: dart format . --set-exit-if-changed

- name: Active coverage
run: pub global activate coverage
run: dart pub global activate coverage

- name: Run tests
run: pub run test test/rx_storage_test.dart --chain-stack-traces
run: dart pub run test test/rx_storage_test.dart --chain-stack-traces

- name: Start Observatory
run: dart --disable-service-auth-codes --enable-vm-service=8111 --pause-isolates-on-exit --enable-asserts test/rx_storage_test.dart &

- name: Collect coverage
run: nohup pub global run coverage:collect_coverage --port=8111 --out=coverage.json --wait-paused --resume-isolates
run: nohup dart pub global run coverage:collect_coverage --port=8111 --out=coverage.json --wait-paused --resume-isolates

- name: Format coverage
run: pub global run coverage:format_coverage --lcov --in=coverage.json --out=lcov.info --packages=.packages --report-on=lib
run: dart pub global run coverage:format_coverage --lcov --in=coverage.json --out=lcov.info --report-on=lib

- uses: codecov/[email protected]

0 comments on commit a72bdc2

Please sign in to comment.