* chore: update Flutter SDK to version 3.38.5 Upgrade Flutter from 3.32.4 to 3.38.5 to meet awesome_lints requirement for Dart SDK 3.10.0+. Update CI workflow to use the new Flutter version and add custom_lint verification step. * chore: integrate awesome_lints with custom lint rules Add awesome_lints and custom_lint dependencies, configure analysis_options.yaml to enable newline lint rules: newline_before_case, newline_before_constructor, newline_before_method, and newline_before_return. * style: apply newline formatting per awesome_lints rules Add blank lines before case clauses, return statements, method declarations, and constructors throughout the codebase to comply with awesome_lints newline rules. * fix: replace deprecated translate with leftTranslateByDouble Update Matrix4.translate() calls to use the new leftTranslateByDouble() API to resolve deprecation warnings in Flutter SDK 3.38.5. * chore: improve code readability with blank line formatting
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: AppFlowyEditor test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
- "stable"
|
|
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
- "stable"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
# 3 jobs are configured.
|
|
# The first one runs tests on desktop OSs.
|
|
# The second runs tests on iOS simulator.
|
|
# The third runs tests on Android emulator.
|
|
jobs:
|
|
desktop:
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: "stable"
|
|
flutter-version: "3.38.5"
|
|
cache: true
|
|
|
|
- name: Run tests
|
|
run: |
|
|
flutter --version
|
|
flutter pub get
|
|
flutter analyze .
|
|
dart format --set-exit-if-changed .
|
|
dart run custom_lint
|
|
flutter test --coverage
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: Wandalen/wretry.action@v1.0.36
|
|
with:
|
|
action: codecov/codecov-action@v3
|
|
with: |
|
|
fail_ci_if_error: true
|
|
verbose: true
|
|
os: ${{ matrix.os }}
|
|
token: 398c9ded-28ad-4750-bfdb-e7f502539137
|
|
attempt_limit: 10
|
|
attempt_delay: 10000
|