Merge pull request #304 from iMattPro/release #14
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: CLI tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| phpunit: | |
| name: PHPUnit PHP ${{ matrix.php }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.1', '8.2', '8.3', '8.4'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none | |
| - name: Validate test Composer config | |
| working-directory: tests | |
| run: COMPOSER=composer.cli-tests.json composer validate --no-check-publish --strict | |
| - name: Install test dependencies | |
| working-directory: tests | |
| run: COMPOSER=composer.cli-tests.json composer install --no-interaction --prefer-dist | |
| - name: Run PHPUnit | |
| run: tests/vendor/bin/phpunit -c phpunit.xml.dist | |
| - name: Lint CLI entrypoint | |
| run: php -l bin/qi |