Skip to content

Commit c4e5dd4

Browse files
ci: pull requests run only the affected turbo tasks (#18)
A pull request now runs the formatter check and the build, lint, typecheck, type-test, API and attw tasks for the packages the change affects, selected with turbo --affected between the pull request base and head. The merge queue and main still run every task and every test. Co-authored-by: systemfsoftware-bot <318394648+systemfsoftware-bot@users.noreply.github.com>
1 parent 5a2cc83 commit c4e5dd4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@ jobs:
1919
with:
2020
commitlint: true
2121
changeset: false
22-
fast: pnpm check:static
22+
fast: |
23+
s=0; ./bin/dprint check || s=1
24+
export TURBO_SCM_BASE="$BASE" TURBO_SCM_HEAD="$HEAD"
25+
pnpm exec turbo run --concurrency=${TURBO_CONCURRENCY:-50%} --continue build lint typecheck test:types api:check attw --affected || s=1
26+
exit $s
2327
full: pnpm check:ci

0 commit comments

Comments
 (0)