-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Break up e2e tests (#6169)
This commit moves test definitions around and doesn't meaningfully change them. The main change worth noting is that the `basicPrune` and `explicitDepPrune` pipeline fixtures were running all 8 tests with yarn. After this change they are only running the relevant prune tests (both from a root directory and when the monorepo is nested in a subdirectory). The extra tests are removed, because the changed pipeline definition does not meaningfully test anything different in turbo run commands.
- Loading branch information
Showing
16 changed files
with
1,227 additions
and
986 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
export const basicPipeline = { | ||
pipeline: { | ||
test: { | ||
dependsOn: ["^build"], | ||
outputs: [], | ||
}, | ||
lint: { | ||
inputs: ["build.js", "lint.js"], | ||
outputs: [], | ||
}, | ||
build: { | ||
dependsOn: ["^build"], | ||
outputs: ["dist/**", "!dist/cache/**"], | ||
}, | ||
"//#build": { | ||
dependsOn: [], | ||
outputs: ["dist/**"], | ||
inputs: ["rootbuild.js"], | ||
}, | ||
"//#special": { | ||
dependsOn: ["^build"], | ||
outputs: ["dist/**"], | ||
inputs: [], | ||
}, | ||
"//#args": { | ||
dependsOn: [], | ||
outputs: [], | ||
}, | ||
}, | ||
globalEnv: ["GLOBAL_ENV_DEPENDENCY"], | ||
}; | ||
|
||
export const prunePipeline = { | ||
...basicPipeline, | ||
pipeline: { | ||
...basicPipeline.pipeline, | ||
// add some package specific pipeline tasks to test pruning | ||
"a#build": { | ||
outputs: ["dist/**", "!dist/cache/**"], | ||
}, | ||
"c#build": { | ||
outputs: ["dist/**", "!dist/cache/**"], | ||
}, | ||
}, | ||
}; | ||
|
||
export const explicitPrunePipeline = { | ||
...basicPipeline, | ||
pipeline: { | ||
...basicPipeline.pipeline, | ||
// add some package specific pipeline tasks to test pruning | ||
"a#build": { | ||
dependsOn: ["b#build"], | ||
outputs: ["dist/**", "!dist/cache/**"], | ||
}, | ||
"b#build": { | ||
outputs: ["dist/**", "!dist/cache/**"], | ||
}, | ||
"c#build": { | ||
outputs: ["dist/**", "!dist/cache/**"], | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.
5cae760
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
turbo-site – ./docs
turbo.vercel.app
turbopack.org
turbo.vercel.sh
www.turbo.build
turborepo.org
www.turbopack.org
www.turborepo.com
turbo.build
www.turborepo.org
turbo-site.vercel.sh
turbo-site-git-main.vercel.sh