diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c85782..042d0c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,12 +47,17 @@ jobs: - name: Start the application run: npm start & working-directory: ./apps/api + id: start_app - name: Start workers run: npm run workers & working-directory: ./apps/api + id: start_workers - name: Run E2E tests - run: npx jest --openHandlesTimeout=60000 --watchAll=false -- src/__tests__/e2e/index.test.ts + run: | + npx jest --openHandlesTimeout=60000 --watchAll=false -- src/__tests__/e2e/index.test.ts working-directory: ./apps/api - - - + - name: Kill background processes + if: always() + run: | + kill $(jobs -p) + working-directory: ./apps/api \ No newline at end of file