Skip to content

Commit

Permalink
add indexed shards for admin-ui and smoke-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Feb 22, 2024
1 parent 65cf39b commit a89ee34
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/tests_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ jobs:
runs-on: ubuntu-latest
env:
DATABASE_URL: file:./test.db
strategy:
fail-fast: false
matrix:
index: [1, 2]
steps:
- uses: actions/checkout@main
- uses: ./.github/actions/ci-setup-examples
Expand All @@ -223,13 +227,17 @@ jobs:
run: cd tests/examples-smoke-tests && pnpm playwright install chromium

- name: Unit tests
run: pnpm jest --ci tests/examples-smoke-tests/
run: pnpm jest --ci --shard=${{ matrix.index }}/2 tests/examples-smoke-tests/

admin_ui_integration_tests:
name: Integration tests for Admin UI
runs-on: ubuntu-latest
env:
DATABASE_URL: file:./test.db
strategy:
fail-fast: false
matrix:
index: [1, 2]
steps:
- uses: actions/checkout@main
- uses: ./.github/actions/ci-setup-examples
Expand All @@ -241,4 +249,4 @@ jobs:
run: cd tests/admin-ui-tests && pnpm playwright install chromium

- name: Unit tests
run: pnpm jest --ci --runInBand tests/admin-ui-tests/
run: pnpm jest --ci --shard=${{ matrix.index }}/2 --runInBand tests/admin-ui-tests/

0 comments on commit a89ee34

Please sign in to comment.