forked from solid-software/solid_lints
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 905 Bytes
/
flutter.yaml
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
name: Application ON Push & PR DO Code check
on: [ push, pull_request ]
jobs:
code-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Check Flutter SDK version
run: flutter --version
- name: Get dependencies
run: |
flutter pub get
flutter pub get lint_test
- name: Check formatting
run: dart format . --set-exit-if-changed
- name: Run default analyzer
run: flutter analyze
- name: Run custom analyzer
run: dart run custom_lint
- name: Run tests
run: |
# run tests if `test` folder exists
if [ -d test ]
then
flutter test -r expanded
else
echo "Tests not found."
fi