File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments