Update LICENSE #157
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: On Pull Request | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Format | |
run: dart format --set-exit-if-changed lib test example | |
- name: Analyzing project | |
run: flutter analyze | |
- name: Run tests | |
run: flutter test --no-pub --coverage --test-randomize-ordering-seed random | |
- name: Check Code Coverage | |
uses: VeryGoodOpenSource/[email protected] | |
with: | |
path: coverage/lcov.info | |
min_coverage: 90 | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |