Skip to content

Commit 93b1591

Browse files
committed
CI: Enable parallel test suites for percy
1 parent 8daab7c commit 93b1591

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ jobs:
202202
- run: pnpm install
203203

204204
- if: github.repository == 'rust-lang/crates.io'
205-
run: pnpm percy exec -- pnpm test-coverage
205+
run: pnpm percy exec --parallel -- pnpm test-coverage
206206

207207
- if: github.repository != 'rust-lang/crates.io'
208208
run: pnpm test-coverage
@@ -238,11 +238,36 @@ jobs:
238238
- run: pnpm playwright install chromium
239239

240240
- if: github.repository == 'rust-lang/crates.io'
241-
run: pnpm percy exec -- pnpm e2e
241+
run: pnpm percy exec --parallel -- pnpm e2e
242242

243243
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
244244
if: ${{ !cancelled() }}
245245
with:
246246
name: playwright-report
247247
path: playwright-report/
248248
retention-days: 14
249+
250+
finalize-percy:
251+
needs: [frontend-test, e2e-test]
252+
runs-on: ubuntu-22.04
253+
254+
env:
255+
JOBS: 1 # See https://git.io/vdao3 for details.
256+
257+
# Percy secrets are included here to enable Percy's GitHub integration
258+
# on community-submitted PRs
259+
PERCY_TOKEN: web_0a783d8086b6f996809f3e751d032dd6d156782082bcd1423b9b860113c75054
260+
261+
steps:
262+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
263+
264+
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
265+
with:
266+
version: ${{ env.PNPM_VERSION }}
267+
268+
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
269+
with:
270+
cache: pnpm
271+
node-version-file: package.json
272+
- run: pnpm install
273+
- run: pnpm percy build:finalize

0 commit comments

Comments
 (0)