Add CI/CD pipelines for Flutter and backend projects

This commit is contained in:
2025-09-21 00:40:13 +02:00
parent 074b5f8f4c
commit 40ec7a0d38
7 changed files with 75 additions and 213 deletions

39
finlog_app/.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,39 @@
default:
image: ghcr.io/cirruslabs/flutter:3.35.4
variables:
PUB_CACHE: "$CI_PROJECT_DIR/.pub-cache"
cache:
key: "flutter-${CI_COMMIT_REF_SLUG}"
policy: pull-push
paths:
- .pub-cache/
- finlog_app/.dart_tool/
- finlog_app/app/.dart_tool/
- finlog_app/fluttery/.dart_tool/
stages:
- prepare
- test
# 1) Einmal pub get im Workspace-Root
prepare_flutter_workspace:
stage: prepare
script:
- cd finlog_app
- flutter --version
- flutter pub get
# 2) Tests PARALLEL (beide hängen nur von prepare ab)
fluttery_test:
stage: test
needs: ["prepare_flutter_workspace"]
script:
- cd finlog_app/fluttery
- flutter test
app_test:
stage: test
needs: ["prepare_flutter_workspace"]
script:
- cd finlog_app/app
- flutter test