-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (57 loc) · 2.09 KB
/
continuous-integration-formigas_custom_theme.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: formigas_custom_theme brick CI
on:
pull_request:
paths:
- formigas_custom_theme/**
- .github/workflows/continuous-integration-formigas_custom_theme.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.24.2
- name: Install Mason CLI
run: dart pub global activate mason_cli
- name: Initialize Mason
run: mason init
- name: Add VGV_core with Mason
run: dart pub global activate very_good_cli && very_good create flutter_app my_app
- name: Add formigas_custom_theme with Mason
run: mason add formigas_custom_theme --path ./formigas_custom_theme
- name: Make formigas formigas_custom_theme
run: mason make formigas_custom_theme --app_directory=lib/app/view --use_fvm=false
working-directory: my_app
- name: Verify file creation
run: |
if [ ! -f "lib/common/color_scheme.dart" ]; then
echo "lib/common/color_scheme.dart not found"
exit 1
fi
if [ ! -f "lib/common/custom_themes.dart" ]; then
echo "lib/common/custom_themes.dart not found"
exit 1
fi
if [ ! -f "lib/common/text_style.dart" ]; then
echo "lib/common/text_style.dart not found"
exit 1
fi
working-directory: my_app
- name: Run tests
run: flutter test
working-directory: my_app
- name: format files
run: dart format -o none --set-exit-if-changed ./lib ./test
working-directory: my_app
- name: Analyze files
run: flutter analyze --fatal-infos --fatal-warnings
working-directory: my_app
- name: Build app
run: flutter build apk --debug --flavor production --target lib/main_production.dart
working-directory: my_app