-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (47 loc) · 1.29 KB
/
tests.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
50
51
52
53
54
55
56
57
58
59
60
61
name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
unittesting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Dart
uses: dart-lang/setup-dart@v1
with:
sdk: 'stable'
- name: Install dependencies
run: dart pub get
- name: Run tests
run: dart test --coverage=coverage
- name: Install lcov
run: sudo apt-get install -y lcov
- name: Generate coverage report
run: |
dart pub global activate coverage
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage/lcov.info
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
integration_testing:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Dart
uses: dart-lang/setup-dart@v1
with:
sdk: 'stable'
- name: Install dependencies
run: dart pub get
- name: Run integration tests
run: dart test integration_test