Skip to content

Commit

Permalink
shard unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnoble committed Mar 7, 2024
1 parent c483c53 commit 0a8f296
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 0a8f296

Please sign in to comment.