From 78de189d56ad8cd462a30e6a61c1cfabc0180198 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Fri, 28 Apr 2023 22:10:01 -0400 Subject: [PATCH] ci: simplify server npm steps (#2352) --- .github/workflows/test.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59dc909b3e..84416cd400 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -123,7 +123,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Run API generation - run: cd server && npm ci && npm run api:generate + run: npm --prefix server run api:generate - name: Find file changes uses: tj-actions/verify-changed-files@v13.1 id: verify-changed-files @@ -158,18 +158,12 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install server dependencies - run: | - cd server - npm ci + run: npm --prefix server ci - name: Run existing migrations - run: | - cd server - npm run typeorm:migrations:run + run: npm --prefix server run typeorm:migrations:run - name: Generate new migrations continue-on-error: true - run: | - cd server - npm run typeorm:migrations:generate ./libs/infra/src/migrations/TestMigration + run: npm --prefix server run typeorm:migrations:generate ./libs/infra/src/migrations/TestMigration - name: Find file changes uses: tj-actions/verify-changed-files@v13.1 id: verify-changed-files