Skip to content

Commit 687d68e

Browse files
chore: use just one shard for the secure site (#4269)
1 parent 604df22 commit 687d68e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/pr_checks.yml

+1
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,4 @@ jobs:
248248
with:
249249
branch: ${{ github.ref }}
250250
build-and-cache-only: ${{ github.event_name == 'push' }}
251+
matrix_config: '{"shard":[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "shardTotal":[10]}'

.github/workflows/ui_tests.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ on:
4343
required: false
4444
default: false
4545
type: boolean
46+
matrix_config:
47+
description: 'The matrix configuration for sharding as a JSON string.'
48+
required: false
49+
default: '{"shard":[1], "shardTotal":[1]}'
50+
type: string
4651
secrets:
4752
NEXT_PUBLIC_PROJECT_ID:
4853
required: true
@@ -160,9 +165,8 @@ jobs:
160165
runs-on: [self-hosted, aws-ecs-16cpu-64mem-30m]
161166
strategy:
162167
fail-fast: false
163-
matrix:
164-
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
165-
shardTotal: [10]
168+
# Update matrix to use fromJson with the new input
169+
matrix: ${{ fromJson(inputs.matrix_config) }}
166170
timeout-minutes: 15
167171
steps:
168172
# Possibly this helps with GitHub-hosted runner network issues, but it's not confirmed

0 commit comments

Comments
 (0)