Skip to content

Commit bd7679e

Browse files
committed
CI: Run @crates-io/msw tests in dedicated job
1 parent 8b4fe37 commit bd7679e

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,36 @@ jobs:
233233

234234
- run: pnpm install
235235

236-
- run: pnpm --filter "@crates-io/msw" test
237-
238236
- if: github.repository == 'rust-lang/crates.io'
239237
run: pnpm percy exec --parallel -- pnpm test-coverage
240238

241239
- if: github.repository != 'rust-lang/crates.io'
242240
run: pnpm test-coverage
243241

242+
msw-test:
243+
name: Frontend / Test (@crates-io/msw)
244+
runs-on: ubuntu-24.04
245+
needs: [changed-files]
246+
if: needs.changed-files.outputs.non-rust == 'true'
247+
248+
steps:
249+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
250+
with:
251+
persist-credentials: false
252+
253+
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
254+
with:
255+
version: ${{ env.PNPM_VERSION }}
256+
257+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
258+
with:
259+
cache: pnpm
260+
node-version-file: package.json
261+
262+
- run: pnpm install
263+
264+
- run: pnpm --filter "@crates-io/msw" test
265+
244266
e2e-test:
245267
name: Frontend / Test (playwright)
246268
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)