diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31cd1907c..7f1aad53c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,11 +102,12 @@ jobs: - name: Lint all packages (excluding web) run: pnpm lint --filter='!@buster-app/web' - # Test job - runs in parallel + # Test job - runs after build completes test: name: Test runs-on: blacksmith-4vcpu-ubuntu-2404 timeout-minutes: 15 + needs: build steps: - name: Checkout code uses: actions/checkout@v4 @@ -143,6 +144,11 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile --prefer-offline + - name: Build required packages + run: pnpm build --filter='!@buster-app/web' + env: + NODE_ENV: production + - name: Run all unit tests (excluding web) run: pnpm test:unit --filter='!@buster-app/web'