-
-
Notifications
You must be signed in to change notification settings - Fork 523
40 lines (38 loc) · 960 Bytes
/
flutter.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
name: code analysis & formatting
on:
push:
branches:
- master
pull_request:
types: [ opened, labeled, unlabeled, synchronize ]
jobs:
analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
java-version: 11
distribution: temurin
- uses: subosito/[email protected]
with:
cache: true
- name: Version
run: flutter doctor -v
- name: Install dependencies
run: flutter pub get
- name: Linter
run: flutter analyze
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
java-version: 11
distribution: temurin
- uses: subosito/[email protected]
with:
cache: true
- name: Format
run: dart format --set-exit-if-changed .