Add a new helper to detect Windows >= 10 #19
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: Continuous Integration | |
| 'on': | |
| push: | |
| branches: [ main ] | |
| pull_request: ~ | |
| jobs: | |
| ci_linux: | |
| name: Run the test suite on Linux | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-versions: | |
| - '8.2' | |
| - '8.3' | |
| - '8.4' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '${{ matrix.php-versions }}' | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate --strict | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run tests | |
| run: composer test | |
| ci_macos: | |
| name: Run the test suite on macOS | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| php-versions: | |
| - '8.2' | |
| - '8.3' | |
| - '8.4' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '${{ matrix.php-versions }}' | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate --strict | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run tests | |
| run: composer test | |
| ci_windows: | |
| name: Run the test suite on Windows | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| php-versions: | |
| - '8.2' | |
| - '8.3' | |
| - '8.4' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '${{ matrix.php-versions }}' | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate --strict | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run tests | |
| run: composer test | |
| php-cs-fixer: | |
| name: Run PHP CS Fixer | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.2' | |
| - name: Install PHP CS Fixer | |
| run: composer install --prefer-dist --no-progress --working-dir=tools/php-cs-fixer | |
| - name: Run PHP CS Fixer | |
| run: composer cs-check | |
| phpstan: | |
| name: Run PHPStan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Install PHPStan | |
| run: composer install --prefer-dist --no-progress --working-dir=tools/phpstan | |
| - name: Run PHPStan | |
| run: composer phpstan |