-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.22 KB
/
ci.yaml
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
name: paper_board
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ci:
name: CI
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Download dependencies
run: flutter pub get
working-directory: ${{env.source-directory}}
- name: Run Flutter Format
run: dart format --set-exit-if-changed .
working-directory: ${{env.source-directory}}
- name: Run Flutter Analyzer
run: flutter analyze
working-directory: ${{env.source-directory}}
# Build Android version of the example App
# - name: Run Android build
# run: flutter build apk --release
# working-directory: example
# Build iOS version of the example App
# - name: Run iOS build
# run: flutter build ios --release --no-codesign
# working-directory: example
# Run all unit-tests with code coverage
- name: Run unit tests
run: flutter test --coverage
working-directory: ./