-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (43 loc) · 1.04 KB
/
flutter_analysis.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
name: Flutter Analysis
on:
push:
branches:
- main
release:
types: [published]
pull_request:
workflow_dispatch:
jobs:
package-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- name: Install Flutter
uses: subosito/flutter-action@v2.8.0
with:
channel: master
- run: flutter upgrade
- run: flutter pub get
- run: flutter gen-l10n
- name: Check formatting
run: dart format --set-exit-if-changed .
- name: Run analysis
run: flutter analyze
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- name: Install Flutter
uses: subosito/flutter-action@v2.8.0
with:
channel: master
- run: flutter upgrade
- run: flutter pub get
- run: flutter gen-l10n
- run: flutter test