From 7e877d435e69b1661aa1f691b915a97dd92ba36c Mon Sep 17 00:00:00 2001 From: Jayasanka Weerasinghe <33048395+jayasanka-sack@users.noreply.github.com> Date: Thu, 5 Sep 2024 18:41:39 +0300 Subject: [PATCH] Remove the job dependancy --- .github/workflows/e2e.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index d32e0a99f..3afff5f11 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -108,8 +108,9 @@ jobs: run-patient-management-e2e-tests: + needs: changes + if: ${{ needs.changes.outputs.test-changes == 'true' }} runs-on: ubuntu-latest - needs: build steps: - uses: actions/checkout@v4 - name: Checkout repo @@ -130,24 +131,12 @@ jobs: path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - - name: Install dependencies - run: yarn install --immutable - - - name: Setup local cache server for Turborepo - uses: felixmosh/turborepo-gh-artifacts@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - server-token: ${{ env.TURBO_TOKEN }} - - name: Build apps run: yarn turbo run build --color --concurrency=5 - name: Run dev server run: bash e2e/support/github/run-e2e-docker-env.sh - - name: Install Playwright Browsers - run: npx playwright install chromium --with-deps - - name: Checkout to the repo's main branch uses: actions/checkout@v4 with: @@ -160,7 +149,6 @@ jobs: working-directory: e2e_repo - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' run: yarn install --immutable working-directory: e2e_repo