-
Notifications
You must be signed in to change notification settings - Fork 26
59 lines (50 loc) · 1.38 KB
/
dart-analyzer.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
# Scripts:
# * fluttercommunity/plus_plugins/.github/workflows/scripts/install-tools.sh
# * fluttercommunity/plus_plugins/.github/workflows/scripts/install-flutter.sh
name: Dart Analyzer
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
melos-version: 3.0.1
steps:
# Setup
- uses: actions/checkout@v2
# Setup flutter
- uses: subosito/flutter-action@v2
with:
channel: "stable"
# Install dependencies
- name: "Install dependencies"
run: flutter pub get
# Install tools
- name: "Install tools"
run: |
flutter config --no-analytics
flutter pub global activate melos ${{env.melos-version}}
# Melos boostrap
- name: "Bootstrap workspace (Melos)"
run: melos bootstrap
# Run Flutter Format to ensure formatting is valid
- name: "Run flutter format"
run: flutter format --set-exit-if-changed .
# Dart analyzer
- name: "Run Dart Analyze"
uses: invertase/github-action-dart-analyzer@v1
with:
fatal-infos: false
fatal-warnings: true
annotate: true
annotate-only: false
working-directory: ./packages
# Dry run
- name: "Dry run"
run: melos publish --dry-run