-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (30 loc) · 1.05 KB
/
dart_build.yml
File metadata and controls
41 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: build
on:
push:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
container:
image: google/dart:latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: pub get
- name: Run tests
run: pub run test
- name: Activate coverage package
run: pub global activate coverage
- name: Collect coverage in json
run: dart --disable-service-auth-codes --enable-vm-service=8111 --pause-isolates-on-exit test/google_polyline_algorithm_test.dart & nohup pub global run coverage:collect_coverage --port=8111 --out=coverage.json --wait-paused --resume-isolates
- name: Convert coverage to lcov
run: pub global run coverage:format_coverage --lcov --in=coverage.json --out=lcov.info --packages=.packages --report-on=lib
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
file: ./lcov.info
name: codecov-google_polyline_algorithm