[ci] use --output-logs=new-only to only list tests that changed (#10570)

This PR effectively reverts the change in https://github.com/vercel/vercel/pull/9172 since it is safe to skip tests that are not part of the turbo cache miss results. Previously, we were unable to do this because all of those jobs/checks were marked as required on the github repo settings. But now we have a single ["Summary" job](f6e863d4bb/.github/workflows/test.yml (L111-L128)) that is marked as required at the repo level so now we don't need to create jobs anymore just to see the turbo cache hit go green.

- [15f90b0](15f90b057d) correctly skipped all e2e tests since none of the packages changed
- [2613963](26139634fb) correctly ran the `vercel` e2e tests since the cli package was changed
- [8488b05](8488b0543b) correctly runs tests for all packages since build-utils was changed and all packages depend on it

Also see [Turbo `-output-logs` docs](https://turbo.build/repo/docs/reference/command-line-reference/run#--output-logs) for more.
This commit is contained in:
Steven
2023-09-22 13:14:57 -04:00
committed by GitHub
parent 3dbc75580d
commit 33e43e103a
2 changed files with 3 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ async function getChunkedTests() {
`run`,
...scripts,
`--cache-dir=.turbo`,
'--output-logs=full',
'--output-logs=new-only',
'--log-order=stream',
'--',
'--', // need two of these due to pnpm arg parsing