mirror of
https://github.com/immich-app/immich.git
synced 2025-12-13 01:10:35 +03:00
Compare commits
2 Commits
06f0f8dc48
...
fix/genera
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a87ec69736 | ||
|
|
118f9a5812 |
21
.github/workflows/static_analysis.yml
vendored
21
.github/workflows/static_analysis.yml
vendored
@@ -71,23 +71,14 @@ jobs:
|
|||||||
- name: Generate platform API
|
- name: Generate platform API
|
||||||
run: make pigeon
|
run: make pigeon
|
||||||
|
|
||||||
- name: Find file changes
|
|
||||||
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf # v20.0.4
|
|
||||||
id: verify-changed-files
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
mobile/**/*.g.dart
|
|
||||||
mobile/**/*.gr.dart
|
|
||||||
mobile/**/*.drift.dart
|
|
||||||
|
|
||||||
- name: Verify files have not changed
|
- name: Verify files have not changed
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
||||||
env:
|
|
||||||
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "ERROR: Generated files not up to date! Run 'make build' and 'make pigeon' inside the mobile directory"
|
if ! git diff --exit-code --quiet '**/*.g.dart' '**/*.gr.dart' '**/*.drift.dart'; then
|
||||||
echo "Changed files: ${CHANGED_FILES}"
|
echo "ERROR: Generated files not up to date! Run 'make build' and 'make pigeon' inside the mobile directory"
|
||||||
exit 1
|
echo "Changed files:"
|
||||||
|
git diff --name-only '**/*.g.dart' '**/*.gr.dart' '**/*.drift.dart'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Run dart analyze
|
- name: Run dart analyze
|
||||||
run: dart analyze --fatal-infos
|
run: dart analyze --fatal-infos
|
||||||
|
|||||||
78
.github/workflows/test.yml
vendored
78
.github/workflows/test.yml
vendored
@@ -251,20 +251,14 @@ jobs:
|
|||||||
run: pnpm --filter=immich-web install --frozen-lockfile
|
run: pnpm --filter=immich-web install --frozen-lockfile
|
||||||
- name: Format
|
- name: Format
|
||||||
run: pnpm --filter=immich-web format:i18n
|
run: pnpm --filter=immich-web format:i18n
|
||||||
- name: Find file changes
|
|
||||||
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf # v20.0.4
|
|
||||||
id: verify-changed-files
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
i18n/**
|
|
||||||
- name: Verify files have not changed
|
- name: Verify files have not changed
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
||||||
env:
|
|
||||||
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "ERROR: i18n files not up to date!"
|
if ! git diff --exit-code --quiet i18n/; then
|
||||||
echo "Changed files: ${CHANGED_FILES}"
|
echo "ERROR: i18n files not up to date!"
|
||||||
exit 1
|
echo "Changed files:"
|
||||||
|
git diff --name-only i18n/
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
e2e-tests-lint:
|
e2e-tests-lint:
|
||||||
name: End-to-End Lint
|
name: End-to-End Lint
|
||||||
needs: pre-job
|
needs: pre-job
|
||||||
@@ -558,22 +552,14 @@ jobs:
|
|||||||
- name: Run API generation
|
- name: Run API generation
|
||||||
run: ./bin/generate-open-api.sh
|
run: ./bin/generate-open-api.sh
|
||||||
working-directory: open-api
|
working-directory: open-api
|
||||||
- name: Find file changes
|
|
||||||
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf # v20.0.4
|
|
||||||
id: verify-changed-files
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
mobile/openapi
|
|
||||||
open-api/typescript-sdk
|
|
||||||
open-api/immich-openapi-specs.json
|
|
||||||
- name: Verify files have not changed
|
- name: Verify files have not changed
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
||||||
env:
|
|
||||||
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "ERROR: Generated files not up to date!"
|
if ! git diff --exit-code --quiet mobile/openapi open-api/typescript-sdk open-api/immich-openapi-specs.json; then
|
||||||
echo "Changed files: ${CHANGED_FILES}"
|
echo "ERROR: Generated files not up to date!"
|
||||||
exit 1
|
echo "Changed files:"
|
||||||
|
git diff --name-only mobile/openapi open-api/typescript-sdk open-api/immich-openapi-specs.json
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
sql-schema-up-to-date:
|
sql-schema-up-to-date:
|
||||||
name: SQL Schema Checks
|
name: SQL Schema Checks
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -617,40 +603,28 @@ jobs:
|
|||||||
- name: Generate new migrations
|
- name: Generate new migrations
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: pnpm migrations:generate src/TestMigration
|
run: pnpm migrations:generate src/TestMigration
|
||||||
- name: Find file changes
|
|
||||||
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf # v20.0.4
|
|
||||||
id: verify-changed-files
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
server/src
|
|
||||||
- name: Verify migration files have not changed
|
- name: Verify migration files have not changed
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
||||||
env:
|
|
||||||
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "ERROR: Generated migration files not up to date!"
|
if ! git diff --exit-code --quiet src; then
|
||||||
echo "Changed files: ${CHANGED_FILES}"
|
echo "ERROR: Generated migration files not up to date!"
|
||||||
cat ./src/*-TestMigration.ts
|
echo "Changed files:"
|
||||||
exit 1
|
git diff --name-only src
|
||||||
|
cat ./src/*-TestMigration.ts
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
- name: Run SQL generation
|
- name: Run SQL generation
|
||||||
run: pnpm sync:sql
|
run: pnpm sync:sql
|
||||||
env:
|
env:
|
||||||
DB_URL: postgres://postgres:postgres@localhost:5432/immich
|
DB_URL: postgres://postgres:postgres@localhost:5432/immich
|
||||||
- name: Find file changes
|
|
||||||
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf # v20.0.4
|
|
||||||
id: verify-changed-sql-files
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
server/src/queries
|
|
||||||
- name: Verify SQL files have not changed
|
- name: Verify SQL files have not changed
|
||||||
if: steps.verify-changed-sql-files.outputs.files_changed == 'true'
|
|
||||||
env:
|
|
||||||
CHANGED_FILES: ${{ steps.verify-changed-sql-files.outputs.changed_files }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "ERROR: Generated SQL files not up to date!"
|
if ! git diff --exit-code --quiet src/queries; then
|
||||||
echo "Changed files: ${CHANGED_FILES}"
|
echo "ERROR: Generated SQL files not up to date!"
|
||||||
git diff
|
echo "Changed files:"
|
||||||
exit 1
|
git diff --name-only src/queries
|
||||||
|
git diff
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# mobile-integration-tests:
|
# mobile-integration-tests:
|
||||||
# name: Run mobile end-to-end integration tests
|
# name: Run mobile end-to-end integration tests
|
||||||
|
|||||||
Reference in New Issue
Block a user