complete function without testing on devices #194
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |