Skip to content

Commit 9b06c00

Browse files
nicohrubeccodex
andcommitted
ci: shard Deno shared integration tests
Co-Authored-By: GPT-6 <codex@openai.com>
1 parent bd3ce5f commit 9b06c00

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,11 +931,15 @@ jobs:
931931
run: yarn test
932932

933933
job_deno_integration_tests:
934-
name: Deno Integration Tests
934+
name: Deno Integration Tests (${{ matrix.shard }}/2)
935935
needs: [job_get_metadata, job_build]
936936
if: needs.job_build.outputs.changed_deno_integration == 'true' || github.event_name != 'pull_request'
937937
runs-on: ubuntu-24.04
938938
timeout-minutes: 15
939+
strategy:
940+
fail-fast: false
941+
matrix:
942+
shard: [1, 2]
939943
steps:
940944
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
941945
uses: actions/checkout@v7
@@ -956,9 +960,16 @@ jobs:
956960
- name: Build @sentry/deno
957961
working-directory: packages/deno
958962
run: yarn build
959-
- name: Run integration tests
963+
- name: Run native Deno integration tests
964+
if: matrix.shard == 1
960965
working-directory: dev-packages/deno-integration-tests
961-
run: yarn test
966+
run: |
967+
yarn install:deno
968+
yarn deno-types
969+
yarn test:unit
970+
- name: Run shared Node integration tests
971+
working-directory: dev-packages/deno-integration-tests
972+
run: yarn test:node-suites --shard=${{ matrix.shard }}/2
962973

963974
job_build_tarballs:
964975
name: Build tarballs

0 commit comments

Comments
 (0)