fixes #722 ? #751
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
name: CI for pull request | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
name: Checkout to stable | |
with: | |
channel: 'stable' # or: 'dev' or 'beta' | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Run tests | |
run: flutter pub run test | |
- name: Flutter test coverage | |
run: flutter test --coverage | |
- name: Remove some unnecessary files from coverage | |
run: flutter pub run remove_from_coverage -f coverage/lcov.info -r 'swagger_models' -r 'extensions' | |
- uses: codecov/[email protected] | |
with: | |
token: ffe96e52-2ac6-46e7-879b-1fea65d896a3 | |
file: ./coverage/lcov.info | |