ci: add Cap 9 deprecated-API guard
Merged
RI
2mo ago+308+308+012345678901234567890123456789-0-0-0123456789
Summary
- Add
scripts/check-cap9-deprecated.mjs(same file as other Cap-go plugins). - Wire
check:cap9-deprecatedinpackage.jsonand run it in CI aftercheck:wiringon Android, iOS, and Web jobs.
Test plan
-
bun run check:cap9-deprecated(passes locally) - GitHub Actions
test.yml
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by CodeRabbit
-
Chores
- Added automated checks to detect deprecated Capacitor native API usage in Android and iOS plugins.
- Checks support individual plugins and workspaces while excluding generated and dependency files.
- Reports the matching rule, file, line number, and source text when issues are found.
- Validates package metadata and returns clear failure results for invalid configurations or detected violations.
-
Tests
- Integrated the deprecation check into the web validation workflow before linting.