-
-
Notifications
You must be signed in to change notification settings - Fork 16
33 lines (31 loc) · 898 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
name: code analysis & formatting
on: [push, pull_request]
jobs:
analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
# Use the community Action to install Flutter
- uses: subosito/flutter-action@v2.3.0
- 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/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
# Use the community Action to install Flutter
- uses: subosito/flutter-action@v2.3.0
- name: Format
run: flutter format -n --set-exit-if-changed .