From c1c4b1278b82276223f3395a27e89ca65b118ec5 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Fri, 20 Sep 2024 13:06:02 -0300 Subject: [PATCH] chore: Use no isolation for unit tests (#16745) * chore: Use no isolation and pooling for unit tests * Added the params to main command * Added back the base checkout * Remove pooling * Run against an 8vCPU machine * Added pool=threads back * Setting on 4vCPU since 8 is not needed due to workflow dependencies --- .github/workflows/unit-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index a3c94d6055..66600c40a0 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -7,14 +7,14 @@ jobs: test: name: Unit timeout-minutes: 20 - runs-on: buildjet-2vcpu-ubuntu-2204 + runs-on: buildjet-4vcpu-ubuntu-2204 steps: - uses: actions/checkout@v4 - uses: ./.github/actions/dangerous-git-checkout - uses: ./.github/actions/yarn-install - - run: yarn test + - run: yarn test -- --no-isolate # We could add different timezones here that we need to run our tests in - - run: TZ=America/Los_Angeles yarn test -- --timeZoneDependentTestsOnly + - run: TZ=America/Los_Angeles yarn test -- --timeZoneDependentTestsOnly --no-isolate - name: Run API v2 tests working-directory: apps/api/v2 run: |