mirror of
https://github.com/immich-app/immich.git
synced 2025-01-23 04:02:45 +01:00
chore: build tweaks (#7484)
This commit is contained in:
parent
f1331905f0
commit
bb3d81bfc5
4 changed files with 18 additions and 15 deletions
|
@ -1,30 +1,31 @@
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.github/
|
||||||
|
.git/
|
||||||
|
|
||||||
design/
|
design/
|
||||||
docker/
|
docker/
|
||||||
docs/
|
docs/
|
||||||
|
e2e/
|
||||||
fastlane/
|
fastlane/
|
||||||
machine-learning/
|
machine-learning/
|
||||||
misc/
|
misc/
|
||||||
mobile/
|
mobile/
|
||||||
|
|
||||||
server/node_modules/
|
cli/coverage/
|
||||||
|
cli/dist/
|
||||||
|
cli/node_modules/
|
||||||
|
|
||||||
|
open-api/typescript-sdk/build/
|
||||||
|
open-api/typescript-sdk/node_modules/
|
||||||
|
|
||||||
server/coverage/
|
server/coverage/
|
||||||
server/.reverse-geocoding-dump/
|
server/node_modules/
|
||||||
server/upload/
|
server/upload/
|
||||||
server/dist/
|
server/dist/
|
||||||
|
server/www/
|
||||||
|
server/test/assets/
|
||||||
|
|
||||||
web/node_modules/
|
web/node_modules/
|
||||||
web/coverage/
|
web/coverage/
|
||||||
web/.svelte-kit
|
web/.svelte-kit
|
||||||
web/build/
|
web/build/
|
||||||
|
|
||||||
cli/node_modules/
|
|
||||||
cli/.reverse-geocoding-dump/
|
|
||||||
cli/upload/
|
|
||||||
cli/dist/
|
|
||||||
|
|
||||||
e2e/
|
|
||||||
|
|
||||||
open-api/typescript-sdk/node_modules/
|
|
||||||
open-api/typescript-sdk/build/
|
|
||||||
|
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -203,7 +203,7 @@ jobs:
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: npx playwright install --with-deps
|
run: npx playwright install --with-deps chromium
|
||||||
|
|
||||||
- name: Docker build
|
- name: Docker build
|
||||||
run: docker compose build
|
run: docker compose build
|
||||||
|
|
|
@ -12,6 +12,7 @@ services:
|
||||||
command: ['/usr/src/app/bin/immich-test', 'jobs']
|
command: ['/usr/src/app/bin/immich-test', 'jobs']
|
||||||
volumes:
|
volumes:
|
||||||
- /usr/src/app/node_modules
|
- /usr/src/app/node_modules
|
||||||
|
- ../test/assets:/usr/src/app/test/assets:ro
|
||||||
environment:
|
environment:
|
||||||
- DB_HOSTNAME=database
|
- DB_HOSTNAME=database
|
||||||
- DB_USERNAME=postgres
|
- DB_USERNAME=postgres
|
||||||
|
|
|
@ -6,7 +6,8 @@ import { INestApplication } from '@nestjs/common';
|
||||||
import { Test } from '@nestjs/testing';
|
import { Test } from '@nestjs/testing';
|
||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
import * as fs from 'node:fs';
|
import * as fs from 'node:fs';
|
||||||
import path from 'node:path';
|
import { tmpdir } from 'node:os';
|
||||||
|
import { join } from 'node:path';
|
||||||
import { EventEmitter } from 'node:stream';
|
import { EventEmitter } from 'node:stream';
|
||||||
import { Server } from 'node:tls';
|
import { Server } from 'node:tls';
|
||||||
import { EntityTarget, ObjectLiteral } from 'typeorm';
|
import { EntityTarget, ObjectLiteral } from 'typeorm';
|
||||||
|
@ -14,7 +15,7 @@ import { AppService } from '../immich/app.service';
|
||||||
import { AppService as MicroAppService } from '../microservices/app.service';
|
import { AppService as MicroAppService } from '../microservices/app.service';
|
||||||
|
|
||||||
export const IMMICH_TEST_ASSET_PATH = process.env.IMMICH_TEST_ASSET_PATH as string;
|
export const IMMICH_TEST_ASSET_PATH = process.env.IMMICH_TEST_ASSET_PATH as string;
|
||||||
export const IMMICH_TEST_ASSET_TEMP_PATH = path.normalize(`${IMMICH_TEST_ASSET_PATH}/temp/`);
|
export const IMMICH_TEST_ASSET_TEMP_PATH = join(tmpdir(), 'immich');
|
||||||
|
|
||||||
export const today = DateTime.fromObject({ year: 2023, month: 11, day: 3 });
|
export const today = DateTime.fromObject({ year: 2023, month: 11, day: 3 });
|
||||||
export const yesterday = today.minus({ days: 1 });
|
export const yesterday = today.minus({ days: 1 });
|
||||||
|
|
Loading…
Reference in a new issue