-
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 843 Bytes
/
check.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
name: Code check
on:
push:
branches:
- main
paths:
- "**.dart"
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml
- name: Update dependencies
run: flutter pub get
- name: Disable analytics
run: |
flutter config --no-analytics
dart --disable-analytics
- name: Remove custom lint # https://github.com/invertase/dart_custom_lint/issues/228
run: sed -i '/custom_lint/d' analysis_options.yaml
- name: Format
run: dart format --set-exit-if-changed lib
- name: Analyze
run: flutter analyze lib