.github/workflows/tests.yml #326
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
on: | |
pull_request: | |
schedule: | |
- cron: "0 0 * * *" | |
concurrency: | |
group: ${{ github.head_ref || 'cron' }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- '8.3' | |
- '8.2' | |
- '8.1' | |
- '8.0' | |
- '7.4' | |
- '7.3' | |
- '7.2' | |
- '7.1' | |
- '7.0' | |
mockery-version: | |
- '1.6.0' | |
- '1.5.0' | |
- '1.4.0' | |
- '1.3.0' | |
- '1.2.0' | |
- '1.1.0' | |
- '1.0.0' | |
- '0.9.0' | |
- '0.8.0' | |
exclude: | |
# PHP 8.3 Exclusions | |
- php-version: '8.3' | |
mockery-version: '1.3.0' | |
- php-version: '8.3' | |
mockery-version: '1.2.0' | |
- php-version: '8.3' | |
mockery-version: '1.1.0' | |
- php-version: '8.3' | |
mockery-version: '1.0.0' | |
- php-version: '8.3' | |
mockery-version: '0.9.0' | |
- php-version: '8.3' | |
mockery-version: '0.8.0' | |
# PHP 8.2 Exclusions | |
- php-version: '8.2' | |
mockery-version: '1.3.0' | |
- php-version: '8.2' | |
mockery-version: '1.2.0' | |
- php-version: '8.2' | |
mockery-version: '1.1.0' | |
- php-version: '8.2' | |
mockery-version: '1.0.0' | |
- php-version: '8.2' | |
mockery-version: '0.9.0' | |
- php-version: '8.2' | |
mockery-version: '0.8.0' | |
# PHP 8.1 Exclusions | |
- php-version: '8.1' | |
mockery-version: '1.3.0' | |
- php-version: '8.1' | |
mockery-version: '1.2.0' | |
- php-version: '8.1' | |
mockery-version: '1.1.0' | |
- php-version: '8.1' | |
mockery-version: '1.0.0' | |
- php-version: '8.1' | |
mockery-version: '0.9.0' | |
- php-version: '8.1' | |
mockery-version: '0.8.0' | |
# PHP 8.0 Exclusions | |
- php-version: '8.0' | |
mockery-version: '1.1.0' | |
- php-version: '8.0' | |
mockery-version: '1.0.0' | |
- php-version: '8.0' | |
mockery-version: '0.9.0' | |
- php-version: '8.0' | |
mockery-version: '0.8.0' | |
# PHP 7.4 Exclusions | |
- php-version: '7.4' | |
mockery-version: '1.1.0' | |
- php-version: '7.4' | |
mockery-version: '1.0.0' | |
- php-version: '7.4' | |
mockery-version: '0.9.0' | |
- php-version: '7.4' | |
mockery-version: '0.8.0' | |
# PHP 7.3 Exclusions | |
- php-version: '7.3' | |
mockery-version: '1.6.0' | |
# PHP 7.2 Exclusions | |
- php-version: '7.2' | |
mockery-version: '1.6.0' | |
- php-version: '7.2' | |
mockery-version: '1.5.0' | |
- php-version: '7.2' | |
mockery-version: '1.4.0' | |
# PHP 7.1 Exclusions | |
- php-version: '7.1' | |
mockery-version: '1.6.0' | |
- php-version: '7.1' | |
mockery-version: '1.5.0' | |
- php-version: '7.1' | |
mockery-version: '1.4.0' | |
# PHP 7.0 Exclusions | |
- php-version: '7.0' | |
mockery-version: '1.6.0' | |
- php-version: '7.0' | |
mockery-version: '1.5.0' | |
- php-version: '7.0' | |
mockery-version: '1.4.0' | |
name: Mockery ${{ matrix.mockery-version }} on PHP ${{ matrix.php-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
ini-values: zend.assertions=1 | |
- name: Install Dependencies | |
run: composer require mockery/mockery:~${{ matrix.mockery-version }} --no-interaction --no-progress | |
- name: PHPUnit | |
run: vendor/bin/phpunit |