-
Notifications
You must be signed in to change notification settings - Fork 23
65 lines (52 loc) · 1.86 KB
/
screen_brightness.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
62
63
64
65
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: screen_brightness
on:
push:
branches:
- master
- develop
- 'feature/**'
pull_request:
branches:
- master
- develop
- 'feature/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Install Flutter action
uses: subosito/flutter-action@v2
with:
channel: 'stable' # or: 'beta' or 'master'
- name: Install screen_brightness_platform_interface dependencies
working-directory: ./screen_brightness
run: flutter pub get
- name: Analyze screen_brightness_platform_interface project source
working-directory: ./screen_brightness_platform_interface
run: flutter analyze
- name: Run screen_brightness_platform_interface tests with coverage
working-directory: ./screen_brightness_platform_interface
run: flutter test --coverage
- name: Install screen_brightness dependencies
working-directory: ./screen_brightness
run: flutter pub get
- name: Analyze screen_brightness project source
working-directory: ./screen_brightness
run: flutter analyze
- name: Run screen_brightness tests with coverage
working-directory: ./screen_brightness
run: flutter test --coverage
- name: Upload lcovs to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./screen_brightness/coverage/lcov.info,./screen_brightness_platform_interface/coverage/lcov.info
flags: unittests
name: screen_brightness_merge_lcov
fail_ci_if_error: false