Prerelease v2.0.0-dev.1 #8
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: Nextbillion Maps Flutter CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.22.1" | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Run analyzer | |
run: flutter analyze lib | |
- name: Run tests with coverage | |
run: | | |
flutter test --coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
files: coverage/lcov.info | |
flags: unittests | |
name: codecov-report | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |