You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/_checks-playwright.yaml
+74-1Lines changed: 74 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -118,10 +118,26 @@ on:
118
118
description: "Disable sharding and run all tests in a single job. Useful for tests that require isolation."
119
119
type: boolean
120
120
default: false
121
+
shard_count:
122
+
description: "Number of shards to split tests into (default: 2). Ignored if disable_sharding is true."
123
+
type: number
124
+
default: 2
121
125
artifact_suffix:
122
126
description: "Suffix to append to artifact names for uniqueness (e.g., 'dind-1'). Useful when calling workflow multiple times."
123
127
type: string
124
128
default: ""
129
+
build_artifact_name:
130
+
description: "Name of the build artifact to download. If provided, skips build and uses the artifact instead."
131
+
type: string
132
+
default: ""
133
+
build_artifact_path:
134
+
description: "Path where to extract the build artifact. Defaults to working_directory. Use 'apps' for monorepo artifacts uploaded from apps/ directory."
135
+
type: string
136
+
default: ""
137
+
post_artifact_command:
138
+
description: "Command to run after downloading artifact (e.g., 'chmod +x path/to/binary'). Runs in working_directory."
139
+
type: string
140
+
default: ""
125
141
secrets:
126
142
env_local:
127
143
description: "Env local file to set environment variables (one export per line)"
@@ -140,13 +156,38 @@ on:
140
156
required: false
141
157
142
158
jobs:
159
+
setup:
160
+
name: Setup Matrix
161
+
runs-on: ${{ inputs.runner }}
162
+
outputs:
163
+
matrix: ${{ steps.set-matrix.outputs.matrix }}
164
+
steps:
165
+
- name: Generate shard matrix
166
+
id: set-matrix
167
+
run: |
168
+
if [ "${{ inputs.disable_sharding }}" == "true" ]; then
0 commit comments