Merge branch 'develop' #365
This file contains 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, pull_request] | |
jobs: | |
blackbox: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
php-version: ['8.2', '8.3'] | |
dependency-versions: ['lowest', 'highest'] | |
name: 'BlackBox' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, intl | |
coverage: none | |
ini-values: memory_limit=256M | |
- name: Composer | |
uses: "ramsey/composer-install@v3" | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
- name: BlackBox | |
run: php blackbox.php ci | |
coverage: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
php-version: ['8.2', '8.3'] | |
dependency-versions: ['lowest', 'highest'] | |
name: 'Coverage' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, intl | |
coverage: xdebug | |
ini-values: memory_limit=256M | |
- name: Composer | |
uses: "ramsey/composer-install@v3" | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
- name: BlackBox | |
run: php blackbox.php ci | |
env: | |
ENABLE_COVERAGE: 'true' | |
BLACKBOX_SET_SIZE: '1' | |
- uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
phpunit: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
php-version: ['8.2', '8.3'] | |
dependency-versions: ['lowest', 'highest'] | |
name: 'PHPUnit' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, intl | |
coverage: xdebug | |
- name: Composer | |
uses: "ramsey/composer-install@v3" | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
- name: PHPUnit | |
run: vendor/bin/phpunit --fail-on-risky --coverage-clover=coverage.clover | |
- uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
phpunit_11: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
php-version: ['8.2', '8.3'] | |
dependency-versions: ['lowest', 'highest'] | |
name: 'PHPUnit 11' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, intl | |
coverage: xdebug | |
- name: Composer | |
uses: "ramsey/composer-install@v3" | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
composer-options: '--no-dev' | |
- name: 'Remove conflict on Psalm' | |
run: composer remove --dev vimeo/psalm && composer update | |
- name: PHPUnit | |
run: vendor/bin/phpunit --fail-on-risky --coverage-clover=coverage.clover | |
- uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
psalm: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: ['8.2', '8.3'] | |
dependency-versions: ['lowest', 'highest'] | |
name: 'Psalm' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, intl | |
- name: Composer | |
uses: "ramsey/composer-install@v3" | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
- name: Psalm | |
run: vendor/bin/psalm --shepherd | |
cs: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: ['8.2'] | |
name: 'CS' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, intl | |
- name: Composer | |
uses: "ramsey/composer-install@v3" | |
- name: CS | |
run: vendor/bin/php-cs-fixer fix --diff --dry-run |