Merge branch 'release' into hotfix #56
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: Dart | |
on: | |
push: | |
branches: [ "master", "hotfix", "development" ] | |
pull_request: | |
branches: [ "master", "hotfix", "development" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- id: flutter-action | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Print Flutter configurations | |
run: | | |
echo CACHE-PATH=${{ steps.flutter-action.outputs.CACHE-PATH }} | |
echo CACHE-KEY=${{ steps.flutter-action.outputs.CACHE-KEY }} | |
echo CHANNEL=${{ steps.flutter-action.outputs.CHANNEL }} | |
echo VERSION=${{ steps.flutter-action.outputs.VERSION }} | |
echo ARCHITECTURE=${{ steps.flutter-action.outputs.ARCHITECTURE }} | |
- name: Clean cache configurations | |
run: flutter clean | |
- name: Install dependencies | |
run: flutter pub get | |
# Disabled due inconsistencies between local and remote execution. | |
# - name: Verify formatting | |
# run: dart format --output=none --set-exit-if-changed . | |
- name: Analyze project source | |
run: flutter analyze --no-fatal-infos | |
- name: Run tests | |
run: flutter test | |
- name: Run tests coverage | |
run: flutter test --coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false | |
directory: coverage |