-
Notifications
You must be signed in to change notification settings - Fork 11
50 lines (47 loc) · 1.18 KB
/
checks.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
name: checks
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/checks.yml'
- '**/lib/**'
- '**/android/**'
- '**/ios/**'
- '**/web/**'
- '**/macos/**'
- '**/windows/**'
- '**/pubspec.yaml'
- '**/test/**'
- '**/assets/**'
jobs:
analyze:
timeout-minutes: 7
runs-on: ubuntu-latest
name: ${{ matrix.package }} analysis on ${{ matrix.channel }}
strategy:
matrix:
channel:
- 'stable'
- 'beta'
- 'master'
package:
- 'fireworks'
- 'fireworks_counter'
- 'fireworks_demo'
fail-fast: false
env:
working-directory: ${{ matrix.package }}
steps:
- uses: actions/[email protected]
- uses: subosito/[email protected]
with:
channel: ${{ matrix.channel }}
- name: pub get
run: flutter pub get
working-directory: ${{ env.working-directory }}
- name: dart format
run: dart format . --fix --set-exit-if-changed
working-directory: ${{ env.working-directory }}
- run: dart analyze
working-directory: ${{ env.working-directory }}