mirror of
https://github.com/immich-app/immich.git
synced 2026-07-28 14:47:30 -07:00
Make static_analysis use the shared mobile:codegen action
This commit is contained in:
@@ -76,14 +76,8 @@ jobs:
|
||||
run: flutter pub get --enforce-lockfile
|
||||
working-directory: ./mobile/packages/ui
|
||||
|
||||
- name: Generate translation files
|
||||
run: mise //mobile:codegen:translation
|
||||
|
||||
- name: Run Build Runner
|
||||
run: mise //mobile:codegen:dart
|
||||
|
||||
- name: Generate platform API
|
||||
run: mise //mobile:codegen:pigeon
|
||||
- name: Perform codegen
|
||||
run: mise //mobile:codegen
|
||||
|
||||
- name: Find file changes
|
||||
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf # v20.0.4
|
||||
@@ -100,7 +94,7 @@ jobs:
|
||||
env:
|
||||
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }}
|
||||
run: |
|
||||
echo "ERROR: Generated files not up to date! Run 'mise //mobile:codegen:dart' and 'mise //mobile:codegen:pigeon'"
|
||||
echo "ERROR: Generated files not up to date! Run 'mise //mobile:codegen'"
|
||||
echo "Changed files: ${CHANGED_FILES}"
|
||||
exit 1
|
||||
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@ windows-x64 = { asset_pattern = "dcm-windows-release.zip" }
|
||||
[tasks.codegen]
|
||||
alias = "codegen"
|
||||
description = "Generate all codegen artifacts"
|
||||
depends = ["codegen:dart", "codegen:drift-schema", "codegen:pigeon", "codegen:translation"]
|
||||
depends = ["codegen:dart", "codegen:drift:schema", "codegen:pigeon", "codegen:translation"]
|
||||
|
||||
[tasks."codegen:dart"]
|
||||
description = "Execute build_runner to auto-generate dart code"
|
||||
@@ -33,7 +33,7 @@ run = [
|
||||
"dart format lib/routing/router.gr.dart",
|
||||
]
|
||||
|
||||
[tasks."codegen:drift-schema"]
|
||||
[tasks."codegen:drift:schema"]
|
||||
description = "Generate Drift migration schema test code"
|
||||
sources = ["drift_schemas/main/*.json"]
|
||||
outputs = { auto = true }
|
||||
|
||||
Reference in New Issue
Block a user