appflowy-editor/.github/workflows/test.yml
Jan Zimola 6721018df0
feat: added offline collaboration example using appflowy_editor_sync_plugin (#1103)
* Adding offline collaboration example using appflowy_editor_sync_plugin

* Adapting example to a new  appflowy_editor_sync_plugin version.

* Revert "Adapting example to a new  appflowy_editor_sync_plugin version."

This reverts commit 7ea235f6f6ceb34d00a365fd05e82cdb6c5a8c67.

* increase flutter-version for testing workflow

* fix: auto_scrollable_widget adding lint ignore: invalide_use_of_protected_member.
2025-05-12 15:21:29 +08:00

57 lines
1.2 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.29.3"
cache: true
- name: Run tests
run: |
flutter --version
flutter pub get
flutter analyze .
dart format --set-exit-if-changed .
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