ci: optimize PR CI time and skip Netlify previews for non-docs changes#145
Conversation
Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
Original prompt from Petr
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
✅ Deploy Preview for adt-cli canceled.
|
|
View your CI Pipeline Execution ↗ for commit 7d6f9d3
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
Up to standards ✅🟢 Issues
|
Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…nore script Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
…d docs/ Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
|
/act closing summary
|



Summary
Reduces the time and number of tasks that run for
abapify/adt-cliPR CI, and makes Netlify deploy previews skip non-docs PRs.setup-node,setup-bun,bun install,nx-set-shas, and allnxtasks are skipped when the only changed files are underwebsite/,docs/,*.md, ornetlify.toml.cancel-in-progress: ${{ github.event_name == 'pull_request' }}), somainbuilds still populate the Nx Cloud cache.~/.bun/install/cacheacross runs.nx format:checkto changed files via--base=$NX_BASE --head=$NX_HEAD.nxandnx-cloudfrom./node_modules/.bin/so SonarCloud sees locked, installed binaries instead of package-manager install helpers.netlify.tomlso deploy previews are skipped unless the PR toucheswebsite/ornetlify.toml.What changed
.github/workflows/ci.ymlpaths-ignoreand added aCheck for code changesjob step. This keeps the requiredmaincheck green for docs-only PRs while still skippingbun install,nx report,format:check,affected, andnx-cloud fix-ci.concurrency.cancel-in-progressnow only applies topull_requestevents.actions/cachefor~/.bun/install/cache.nx format:checkis scoped to the affected range (--base=$NX_BASE --head=$NX_HEAD).npx/bunxcalls are replaced with./node_modules/.bin/nxand./node_modules/.bin/nx-cloud..github/workflows/copilot-setup-steps.ymlconcurrency.netlify.toml+website/scripts/netlify-ignore.cjsgit diffignore command with a Node script that:spawnSync('/usr/bin/git', [...])with no shell interpolation.REVIEW_IDbefore using it.website/ornetlify.toml, and builds when it cannot determine changed files.For private repos, set
GITHUB_TOKENin the Netlify site environment so the PR files API is not rate-limited.Out of scope
The third-party app checks that appear on PRs (Netlify header/redirect rules, Codacy, SonarCloud, CodeScene, CodeRabbit, Cubic, Devin Review, etc.) are configured in GitHub app settings, not in repository code. This PR addresses the parts we can control from the repo; I still recommend auditing the installed apps and disabling duplicate AI reviewers/quality gates that do not provide signal you act on.
Link to Devin session: https://app.devin.ai/sessions/8ff3ba8bbf284b8da13c955bf9ad845f
Requested by: @ThePlenkov