feat(app): allow a host to inject theme and feature config #221
This file contains hidden or 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
| name: callkeep-path-guard | |
| # On develop, webtrit_callkeep must stay a path dependency (see docs/release_versioning.md). | |
| # This catches a release `git:` ref accidentally back-merged onto develop. | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| permissions: | |
| contents: read | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Uses Ruby's built-in YAML (psych) - always available on GitHub runners, no extra install. | |
| - name: Ensure webtrit_callkeep is a path dependency | |
| run: | | |
| ruby -ryaml -e ' | |
| dep = (YAML.load_file("pubspec.yaml")["dependencies"] || {})["webtrit_callkeep"] | |
| ok = dep.is_a?(Hash) && dep.key?("path") && !dep.key?("git") | |
| unless ok | |
| warn "::error::On develop, webtrit_callkeep must use a path dependency, not a git ref. A release pin was likely back-merged. See docs/release_versioning.md." | |
| exit 1 | |
| end | |
| puts "OK: webtrit_callkeep is a path dependency." | |
| ' |