Fix toolkit to run workspace on 'check pr' (issue #10906) (#11112)

- Fixes #10906 

No rust changes, just tookit.nu. When `check pr` is run, it should now
run with the `--workspace` argument so all tests are run.
This commit is contained in:
Daniel Somerfield 2023-11-21 09:19:35 -08:00 committed by GitHub
parent ffb80b8873
commit 5ad7b8f029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,10 +267,18 @@ export def "check pr" [
print $"running ('toolkit test' | pretty-format-command)" print $"running ('toolkit test' | pretty-format-command)"
try { try {
if $fast { if $fast {
if ($features | is-empty) {
test --workspace --fast
} else {
test --features $features --fast test --features $features --fast
}
} else {
if ($features | is-empty) {
test --workspace
} else { } else {
test --features $features test --features $features
} }
}
} catch { } catch {
return (report --fail-test) return (report --fail-test)
} }