-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 1.07 KB
/
analyze.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
name: Analyzer
# Analyzes the project on every pull request.
# See analysis_options.yaml for lint configuration.
on: [pull_request, merge_group]
jobs:
analyze:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./repo
steps:
- name: Cache Flutter
id: cache-flutter
uses: actions/cache@v2
with:
path: flutter/
key: ${{ runner.os }}-flutter
- name: Install Flutter
if: steps.cache-flutter.outputs.cache-hit != 'true'
uses: britannio/[email protected]
- uses: actions/checkout@v2
with:
path: repo # keeps Flutter separate from repo
submodules: recursive
# Has to be after checkout since repo won't exist
- name: Add Flutter to path
run: echo "$GITHUB_WORKSPACE/flutter/bin" >> $GITHUB_PATH
# - name: Generate Protobuf files
# run: |
# flutter clean
# flutter pub get
# dart run build_runner build
- name: Analyze
run: flutter analyze --dartdocs