-
Notifications
You must be signed in to change notification settings - Fork 8
64 lines (54 loc) · 1.5 KB
/
tests.yaml
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
62
63
64
name: Flutter_Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install and set Flutter version
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Restore packages
run: |
flutter pub get
cd lighthouse_provider/lighthouse_back_end
dart pub get
cd ../lighthouse_back_ends/bluez_back_end
dart pub get
cd ../fake_back_end
dart pub get
cd ../flutter_blue_plus_back_end
flutter pub get
cd ../flutter_web_bluetooth_back_end
dart pub get
cd ../../lighthouse_logger
dart pub get
cd ../lighthouse_provider
dart pub get
cd ../lighthouse_providers
dart pub get
cd ../lighthouse_test_helper
dart pub get
cd ../../shared/shared_platform
dart pub get
cd ../../
- name: Generate code
run: flutter packages pub run build_runner build
- name: Analyze
run: dart analyze
- name: Formatted
run: dart format --set-exit-if-changed .
- name: Run tests
run: flutter test --coverage
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}