From ca8c8b87dcf242da776af24ded2762a1ae12b8d6 Mon Sep 17 00:00:00 2001 From: rafaelsideguide <150964962+rafaelsideguide@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:29:06 -0300 Subject: [PATCH] fixing workflow --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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