-
Notifications
You must be signed in to change notification settings - Fork 210
57 lines (48 loc) · 1.26 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.22.0"
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