fix: TTY detection for hook subprocesses #14
Workflow file for this run
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: Plugin Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| plugin-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run tests | |
| # Auto-discovers and runs all test-*.sh scripts under any tests/ directory. | |
| # To add a new test, just drop a test-*.sh file in a tests/ folder. | |
| run: | | |
| shopt -s globstar nullglob | |
| failed=0 | |
| for f in **/tests/test-*.sh; do | |
| echo "--- $f ---" | |
| bash "$f" || failed=1 | |
| done | |
| exit $failed |