This update includes comments on the individual tests that should be … #1006
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: Flutter verification | |
on: [push] | |
env: | |
flutter_channel: "stable" | |
flutter_version: "3.13.9" | |
java_version: "17.0.8+101" | |
jobs: | |
Android: | |
name: Flutter on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
include: | |
- os: ubuntu-latest | |
flutter_path: /opt/hostedtoolcache/flutter | |
- os: macos-latest | |
flutter_path: /Users/runner/hostedtoolcache/flutter | |
- os: windows-latest | |
flutter_path: '%USERPROFILE%\hostedtoolcache\flutter' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: "temurin" | |
java-version: ${{ env.java_version }} | |
- name: Cache Flutter dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ matrix.flutter_path }} | |
key: ${{ runner.os }}-flutter-${{ env.flutter_version }} | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutter_version }} | |
channel: ${{ env.flutter_channel }} | |
- run: flutter pub get | |
name: Get dependencies | |
- run: flutter pub upgrade api_client | |
name: Update api_client | |
- run: flutter doctor | |
name: Doctor | |
- run: flutter analyze | |
name: Linter | |
- run: flutter test test/blocs test/exceptions test/models test/providers --coverage | |
name: Tests | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |