tests #590
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: tests | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 3' | |
jobs: | |
tests-on-php83: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
os: | |
- "ubuntu-latest" | |
- "windows-latest" | |
php: | |
- 8.3 | |
laravel: | |
- "10.x" | |
dependencies: | |
- "highest" | |
- "lowest" | |
experimental: | |
- false | |
name: PHP${{ matrix.php }}-${{ matrix.os }} with Laravel ${{ matrix.laravel }} (${{ matrix.dependencies }}) | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, pdo_mysql, bcmath, intl, gd, exif, iconv, imagick, fileinfo | |
coverage: none | |
- name: Install Laravel ${{ matrix.laravel }} | |
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update | |
- name: Add PHP 8.1 Requirements | |
run: composer require "ramsey/collection:^1.2" --no-interaction --no-update | |
if: matrix.php >= 8.1 | |
- name: Install dependencies | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
composer-options: "--prefer-dist --no-cache" | |
- name: Installed dependencies | |
run: composer show -D | |
- name: Execute tests | |
run: vendor/bin/phpunit | |
tests-on-php82: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
os: | |
- "ubuntu-latest" | |
- "windows-latest" | |
php: | |
- 8.2 | |
laravel: | |
- "9.x" | |
- "10.x" | |
dependencies: | |
- "highest" | |
- "lowest" | |
experimental: | |
- false | |
name: PHP${{ matrix.php }}-${{ matrix.os }} with Laravel ${{ matrix.laravel }} (${{ matrix.dependencies }}) | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, pdo_mysql, bcmath, intl, gd, exif, iconv, imagick, fileinfo | |
coverage: none | |
- name: Install Laravel ${{ matrix.laravel }} | |
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update | |
- name: Add PHP 8.1 Requirements | |
run: composer require "ramsey/collection:^1.2" --no-interaction --no-update | |
if: matrix.php >= 8.1 | |
- name: Install dependencies | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
composer-options: "--prefer-dist --no-cache" | |
- name: Installed dependencies | |
run: composer show -D | |
- name: Execute tests | |
run: vendor/bin/phpunit | |
tests-on-php81: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
os: | |
- "ubuntu-latest" | |
- "windows-latest" | |
php: | |
- 8.1 | |
laravel: | |
- "8.x" | |
- "9.x" | |
- "10.x" | |
dependencies: | |
- "highest" | |
- "lowest" | |
experimental: | |
- false | |
name: PHP${{ matrix.php }}-${{ matrix.os }} with Laravel ${{ matrix.laravel }} (${{ matrix.dependencies }}) | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, pdo_mysql, bcmath, intl, gd, exif, iconv, imagick, fileinfo | |
coverage: none | |
- name: Install Laravel ${{ matrix.laravel }} | |
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update | |
- name: Add PHP 8.1 Requirements for ubuntu-latest | |
run: composer require "ramsey/collection:^1.2" --no-interaction --no-update | |
if: matrix.php >= 8.1 && matrix.os != 'windows-latest' | |
- name: Add PHP 8.1 Requirements for windows-latest | |
run: composer require "ramsey/collection:~1.2" --no-interaction --no-update | |
if: matrix.php >= 8.1 && matrix.os == 'windows-latest' | |
- name: Install dependencies | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
composer-options: "--prefer-dist --no-cache" | |
- name: Installed dependencies | |
run: composer show -D | |
- name: Execute tests | |
run: vendor/bin/phpunit | |
tests-on-php80: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
os: | |
- "ubuntu-latest" | |
php: | |
- '8.0' | |
laravel: | |
- "8.x" | |
- "9.x" | |
dependencies: | |
- "highest" | |
- "lowest" | |
experimental: | |
- false | |
name: PHP${{ matrix.php }}-${{ matrix.os }} with Laravel ${{ matrix.laravel }} (${{ matrix.dependencies }}) | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, pdo_mysql, bcmath, intl, gd, exif, iconv, imagick, fileinfo | |
coverage: none | |
- name: Install Laravel ${{ matrix.laravel }} | |
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update | |
- name: Install dependencies | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
composer-options: "--prefer-dist --no-cache" | |
- name: Installed dependencies | |
run: composer show -D | |
- name: Execute tests | |
run: vendor/bin/phpunit | |
tests-on-php7x: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
os: | |
- "ubuntu-latest" | |
php: | |
- 7.3 | |
- 7.4 | |
laravel: | |
- "8.x" | |
dependencies: | |
- "highest" | |
- "lowest" | |
experimental: | |
- false | |
name: PHP${{ matrix.php }}-${{ matrix.os }} with Laravel ${{ matrix.laravel }} (${{ matrix.dependencies }}) | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, pdo_mysql, bcmath, intl, gd, exif, iconv, imagick, fileinfo | |
coverage: none | |
- name: Install Laravel ${{ matrix.laravel }} | |
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update | |
- name: Install dependencies | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
composer-options: "--prefer-dist --no-cache" | |
- name: Installed dependencies | |
run: composer show -D | |
- name: Execute tests | |
run: vendor/bin/phpunit |