mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
ci: run only fmt, clippy, and tests for the native core
This commit is contained in:
parent
8b22917228
commit
3da42ca655
3 changed files with 4 additions and 29 deletions
28
.github/workflows/test.yml
vendored
28
.github/workflows/test.yml
vendored
|
|
@ -103,14 +103,6 @@ jobs:
|
|||
github_token: ${{ steps.token.outputs.token }}
|
||||
working_directory: ./native
|
||||
|
||||
- name: Install Flutter dependencies
|
||||
working-directory: ./native/immich_native_core
|
||||
run: flutter pub get
|
||||
|
||||
- name: Run Dart analyze
|
||||
working-directory: ./native/immich_native_core
|
||||
run: dart analyze
|
||||
|
||||
- name: Check formatting
|
||||
run: cargo fmt --all --check
|
||||
|
||||
|
|
@ -120,26 +112,6 @@ jobs:
|
|||
- name: Run tests
|
||||
run: cargo test --workspace --locked
|
||||
|
||||
- name: Generate native bindings
|
||||
run: mise //native:codegen
|
||||
|
||||
- name: Find generated file changes
|
||||
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf # v20.0.4
|
||||
id: verify-native-generated-files
|
||||
with:
|
||||
files: |
|
||||
native/crates/immich_core_ffi/include/immich_core.h
|
||||
native/immich_native_core/lib/src/ffi/bindings.g.dart
|
||||
|
||||
- name: Verify generated files have not changed
|
||||
if: steps.verify-native-generated-files.outputs.files_changed == 'true'
|
||||
env:
|
||||
CHANGED_FILES: ${{ steps.verify-native-generated-files.outputs.changed_files }}
|
||||
run: |
|
||||
echo "ERROR: Native generated files not up to date! Run 'mise //native:codegen'"
|
||||
echo "Changed files: ${CHANGED_FILES}"
|
||||
exit 1
|
||||
|
||||
script-unit-tests:
|
||||
name: Scripts unit tests
|
||||
needs: pre-job
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue