-
-
Notifications
You must be signed in to change notification settings - Fork 117
39 lines (35 loc) · 997 Bytes
/
main.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
name: Format, Analyze and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
# runs the CI weekly
- cron: "0 0 * * 0"
jobs:
default_run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.10.5'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:'
- run: flutter pub get
- run: dart format --set-exit-if-changed -l 120 lib -l 120 example
- run: flutter analyze lib example
- run: flutter test --no-pub --coverage
- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true