diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a3d9059a0e..389cc0c30dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: - name: Sync codebase run: yarn sync --verify - linux-unit-tests: + linux-unit-tests-1: runs-on: ubuntu-latest strategy: matrix: @@ -49,9 +49,34 @@ jobs: YARN_SETUP_ARGS: "--prod=false --silent" - name: Test - run: yarn --silent test -- --suite unit -- + run: yarn --silent test -- --suite unit -- --shards=1/2 env: - MAX_PROJECTS_PER_BATCH: 2 + MAX_PROJECTS_PER_BATCH: 3 + + linux-unit-tests-2: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.19.1, 20.11.1] + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Setup Node ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' + + - name: Install and build packages + run: yarn setup + env: + YARN_SETUP_ARGS: "--prod=false --silent" + + - name: Test + run: yarn --silent test -- --suite unit -- --shards=2/2 + env: + MAX_PROJECTS_PER_BATCH: 3 teraslice-elasticsearch-tests: runs-on: ubuntu-latest