feat(v4): add cross runtime adapters #79
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Lint & Validate | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check bash syntax | |
| run: | | |
| for f in bin/fleet lib/core/*.sh lib/commands/*.sh; do | |
| echo "Checking $f..." | |
| bash -n "$f" | |
| done | |
| - name: Validate example configs | |
| run: | | |
| for f in examples/*/config.json templates/configs/*.json; do | |
| if [ -f "$f" ]; then | |
| echo "Validating $f..." | |
| python3 -c "import json; json.load(open('$f'))" | |
| fi | |
| done | |
| - name: ShellCheck | |
| uses: ludeeus/action-shellcheck@master | |
| with: | |
| scandir: './lib' | |
| additional_files: 'bin/fleet' | |
| severity: warning | |
| test: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run tests | |
| run: | | |
| chmod +x bin/fleet | |
| bash tests/test_cli.sh |