Add codecov #388
Workflow file for this run
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: Lottie Flutter | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
analyze_and_test: | |
name: Flutter analyze | |
strategy: | |
matrix: | |
flutter: ['stable'] | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ matrix.flutter }} | |
- run: flutter doctor | |
- run: flutter --version | |
- run: flutter pub get | |
working-directory: example | |
- run: flutter analyze | |
- run: flutter test | |
- run: flutter test | |
working-directory: example | |
- run: flutter pub run tool/prepare_submit.dart | |
- name: "check for uncommitted changes" | |
run: | | |
git diff --exit-code --stat -- . ':(exclude)*pubspec.lock' \ | |
|| (echo "##[error] found changed files after build. please run 'dart tool/prepare_submit.dart'" \ | |
"and check in all changes" \ | |
&& exit 1) | |
shell: bash | |
build_web_version: | |
name: Check that the web version can compile | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: flutter precache web | |
- run: flutter pub get | |
working-directory: example | |
- run: flutter build web | |
working-directory: example |