Skip to content

Resolve merge conflicts #631

Resolve merge conflicts

Resolve merge conflicts #631

Workflow file for this run

name: CI
on:
push:
paths:
- ".github/workflows/ci.yaml"
- "packages/**"
jobs:
flutter_packages:
strategy:
matrix:
folder:
[
"packages/widget_toolkit",
"packages/widget_toolkit_otp",
"packages/widget_toolkit_biometrics",
"packages/widget_toolkit_qr",
"packages/widget_toolkit_pin"
]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: dart --version
- run: flutter --version
- run: dart pub global activate pana
- name: Install Dependencies
working-directory: ${{ matrix.folder }}
run: flutter pub get
- name: Analyze
working-directory: ${{ matrix.folder }}
run: flutter analyze lib
- name: Verify package for publishing
working-directory: ${{ matrix.folder }}
run: |
dart pub global run pana .
dart pub publish --dry-run
- name: Run tests
working-directory: ${{ matrix.folder }}
run: |
if [ -d "test" ]; then
flutter test --coverage --exclude-tags=not-tests
fi
- name: Remove unnecessary files
working-directory: ${{ matrix.folder }}
run: flutter pub run clean_coverage clean --exclusions '**/.g.dart','**repository.dart','**rxb.g.dart','**_dependencies.dart' coverage/lcov.info
- name: Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v3
with:
path: "${{ matrix.folder }}/coverage/lcov.info"
min_coverage: 58
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ${{ matrix.folder }}/coverage
token: ${{ secrets.CODECOV_TOKEN }}