-
Notifications
You must be signed in to change notification settings - Fork 33
49 lines (35 loc) · 899 Bytes
/
test.yml
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
42
43
44
45
46
47
48
49
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-20.04
container:
image: dart:stable
steps:
- uses: actions/checkout@v2
- name: Print Dart SDK version
run: dart --version
- name: Install dependencies
run: dart pub get
- name: Run regression tests
run: dart test
coverage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- name: Print Flutter SDK version
run: flutter --version
- name: Install dependencies
run: flutter pub get
- name: Collect coverage
run: flutter test --coverage
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
file: coverage/lcov.info
token: ${{secrets.CODECOV_TOKEN}}