Add Browser UI #26
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: 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 | |
| windows: | |
| name: Windows PHP 8.3 | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| coverage: none | |
| - name: Validate test Composer config | |
| working-directory: tests | |
| env: | |
| COMPOSER: composer.cli-tests.json | |
| run: composer validate --no-check-publish --strict | |
| - name: Install test dependencies | |
| working-directory: tests | |
| env: | |
| COMPOSER: composer.cli-tests.json | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Run PHPUnit | |
| timeout-minutes: 10 | |
| shell: cmd | |
| run: php tests/vendor/bin/phpunit -c phpunit.xml.dist | |
| - name: Smoke test CMD launcher | |
| shell: cmd | |
| run: bin\qi.cmd help |