-
Notifications
You must be signed in to change notification settings - Fork 72
61 lines (58 loc) · 1.55 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: check
on:
# Curently, this workflow is triggered by pull request events only.
# Uncomment the following line to run this workflow on push events
# push:
# branches:
# - main
pull_request:
branches:
- main
jobs:
flutter-analyze:
name: flutter analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.2' # Uses the minimum supported version.
channel: 'stable'
# Setup Melos
- name: Setup Melos
run: |
dart pub global activate melos
# Run Melos bootstrap
- name: Melos bootstrap
run: |
melos bootstrap
# Get Flutter version
- name: Get Flutter version
run: flutter --version
# Get dependencies
- name: Get dependencies
run: flutter pub get
# Run flutter analyze
- name: flutter analyze
run: flutter analyze
dart-format:
name: dart format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.2' # Uses the minimum supported version.
channel: 'stable'
# Setup Melos
- name: Setup Melos
run: |
dart pub global activate melos
# Run Melos bootstrap
- name: Melos bootstrap
run: |
melos bootstrap
# CHeck if there are formatting issues
- name: Check formatting
run: |
dart format --set-exit-if-changed .