-
-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (36 loc) · 1.06 KB
/
code_quality.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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Check source code quality
on:
pull_request:
branches: ["main"]
jobs:
lint:
name: Check lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter --version
# Check for any formatting issues in the code.
- name: Verify formatting
run: dart format --set-exit-if-changed .
analyze:
name: Check code analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter --version
# Get flutter dependencies.
- name: Install dependencies
run: flutter pub get
# Statically analyze the Dart code for any errors.
- name: Analyze project source
run: flutter analyze .