forked from Echo-Mirror-Butler/echomirror-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 790 Bytes
/
Copy pathflutter-ci.yml
File metadata and controls
36 lines (29 loc) · 790 Bytes
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
name: Flutter CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
flutter-ci:
name: Format · Analyze · Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/flutter
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Install dependencies
run: flutter pub get
- name: Check Dart formatting
run: |
dart format lib test
git diff --exit-code lib test || (echo "Run 'dart format lib test' locally in packages/flutter before pushing" && exit 1)
- name: Analyze
run: flutter analyze --no-fatal-infos
- name: Run tests
run: flutter test