forked from RodrigoSMarques/flutter_branch_sdk
-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (44 loc) · 1.01 KB
/
ci.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
42
43
44
45
46
name: Plugin code analysis
on:
push:
branches:
- "master"
- "dev"
- "bugfix"
paths-ignore:
- "**/README.md"
- "docs/**"
pull_request:
branches:
- "master"
- "dev"
- "bugfix"
jobs:
check-lint-flutter:
name: Lint (flutter)
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Lint
run: dart format --output=none --set-exit-if-changed lib/
check-code-analysis-flutter:
name: Code analysis (flutter)
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Install dependencies
run: flutter pub get
- name: Analyze code
run: flutter analyze --no-fatal-infos