File tree Expand file tree Collapse file tree 1 file changed +38
-5
lines changed Expand file tree Collapse file tree 1 file changed +38
-5
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,53 @@ jobs:
1616 with :
1717 channel : stable
1818
19- - name : Cache pub packages
19+ - name : Cache pub packages (Flutter)
2020 uses : actions/cache@v3
2121 with :
2222 path : |
2323 ~/.pub-cache
24- key : ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
24+ key : ${{ runner.os }}-pub-${{ hashFiles('e_shoppe/ **/pubspec.lock') }}
2525 restore-keys : |
2626 ${{ runner.os }}-pub-
2727
2828 - name : Flutter pub get
29+ working-directory : e_shoppe
2930 run : flutter pub get
3031
31- - name : Analyze
32+ - name : Analyze Flutter code
33+ working-directory : e_shoppe
3234 run : flutter analyze --no-pub
3335
34- - name : Run tests
35- run : flutter test
36+ - name : Run Flutter tests
37+ working-directory : e_shoppe
38+ run : flutter test
39+
40+ backend :
41+ runs-on : ubuntu-latest
42+ steps :
43+ - uses : actions/checkout@v4
44+
45+ - name : Setup Dart
46+ uses : dart-lang/setup-dart@v1
47+
48+ - name : Cache pub packages (Dart)
49+ uses : actions/cache@v3
50+ with :
51+ path : |
52+ ~/.pub-cache
53+ key : ${{ runner.os }}-dart-${{ hashFiles('order_server/pubspec.lock') }}
54+ restore-keys : |
55+ ${{ runner.os }}-dart-
56+
57+ - name : Dart pub get (backend)
58+ working-directory : order_server
59+ run : dart pub get
60+
61+ - name : Analyze backend code
62+ working-directory : order_server
63+ run : dart analyze --fatal-infos --fatal-warnings
64+
65+ # If backend tests exist, run them (none yet, so this is optional)
66+ # - name: Run backend tests
67+ # working-directory: order_server
68+ # run: dart test
You can’t perform that action at this time.
0 commit comments