-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (54 loc) · 1.99 KB
/
continuous-integration-formigas_go_router.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
name: formigas_go_router brick CI
on:
pull_request:
paths:
- formigas_go_router/**
- .github/workflows/continuous-integration-formigas_go_router.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_go_router with Mason
run: mason add formigas_go_router --path ./formigas_go_router
- name: Make formigas formigas_go_router
run: mason make formigas_go_router --homepage_name=CounterPage --homepage_path=counter/view/ --app_directory=lib/app/view
working-directory: my_app
- name: Verify file creation
run: |
if [ ! -f "lib/services/navigation_service/go_router.dart" ]; then
echo "lib/services/navigation_service/go_router.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
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Build app
run: flutter build appbundle --flavor production --target lib/main_production.dart
working-directory: my_app