-
Notifications
You must be signed in to change notification settings - Fork 14
63 lines (60 loc) · 1.99 KB
/
dart.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
62
63
name: Dart
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: DAW - Dart - Build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
src:
- 'crates/apps/daw/**'
- uses: subosito/flutter-action@v1
if: steps.changes.outputs.src == 'true'
- name: Install dependencies
run: cd ./crates/apps/daw && flutter pub get
if: steps.changes.outputs.src == 'true'
- name: Verify formatting
run: cd ./crates/apps/daw && dart format --output=none --set-exit-if-changed .
if: steps.changes.outputs.src == 'true'
- name: Analyze project source
run: cd ./crates/apps/daw && flutter analyze
if: steps.changes.outputs.src == 'true'
- name: Run tests
run: cd ./crates/apps/daw && flutter test
if: steps.changes.outputs.src == 'true'
build_metronome:
name: Metronome - Dart - Build & test
runs-on: macos-12
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
lfs: true
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
src:
- 'crates/apps/metronome/**'
- uses: subosito/flutter-action@v1
if: steps.changes.outputs.src == 'true'
- name: Install dependencies
run: cd ./crates/apps/metronome && flutter pub get
if: steps.changes.outputs.src == 'true'
- name: Verify formatting
run: cd ./crates/apps/metronome && dart format --output=none --set-exit-if-changed ./lib
if: steps.changes.outputs.src == 'true'
- name: Analyze project source
run: cd ./crates/apps/metronome && dart analyze
if: steps.changes.outputs.src == 'true'
- name: Run tests
run: cd ./crates/apps/metronome && flutter test
if: steps.changes.outputs.src == 'true'