mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
ci: simplify server npm steps (#2352)
This commit is contained in:
parent
b21c99eb12
commit
78de189d56
1 changed files with 4 additions and 10 deletions
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
|
@ -123,7 +123,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Run API generation
|
- name: Run API generation
|
||||||
run: cd server && npm ci && npm run api:generate
|
run: npm --prefix server run api:generate
|
||||||
- name: Find file changes
|
- name: Find file changes
|
||||||
uses: tj-actions/verify-changed-files@v13.1
|
uses: tj-actions/verify-changed-files@v13.1
|
||||||
id: verify-changed-files
|
id: verify-changed-files
|
||||||
|
@ -158,18 +158,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install server dependencies
|
- name: Install server dependencies
|
||||||
run: |
|
run: npm --prefix server ci
|
||||||
cd server
|
|
||||||
npm ci
|
|
||||||
- name: Run existing migrations
|
- name: Run existing migrations
|
||||||
run: |
|
run: npm --prefix server run typeorm:migrations:run
|
||||||
cd server
|
|
||||||
npm run typeorm:migrations:run
|
|
||||||
- name: Generate new migrations
|
- name: Generate new migrations
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: npm --prefix server run typeorm:migrations:generate ./libs/infra/src/migrations/TestMigration
|
||||||
cd server
|
|
||||||
npm run typeorm:migrations:generate ./libs/infra/src/migrations/TestMigration
|
|
||||||
- name: Find file changes
|
- name: Find file changes
|
||||||
uses: tj-actions/verify-changed-files@v13.1
|
uses: tj-actions/verify-changed-files@v13.1
|
||||||
id: verify-changed-files
|
id: verify-changed-files
|
||||||
|
|
Loading…
Reference in a new issue