Updated refactor.md #10
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: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.4" | |
| tools: composer:v2 | |
| - name: Validate Composer | |
| run: composer validate --strict | |
| - name: PHP syntax check | |
| run: | | |
| for f in $(find src -name "*.php"); do php -l "$f" || exit 1; done | |
| - name: Validate skills | |
| run: php scripts/validate-skills.php |