This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
Tests #264
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: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 1' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [ 8.0, 8.1, 8.2 ] | |
laravel: [ 9, 10 ] | |
stability: [ prefer-lowest, prefer-stable ] | |
exclude: | |
- php: 8.0 | |
laravel: 10 | |
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} (${{ matrix.stability }}) | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, json, libxml, mbstring, zip | |
tools: composer:v2 | |
coverage: none | |
# https://github.com/briannesbitt/Carbon/releases/tag/2.62.1 | |
- name: Patch Carbon version | |
if: matrix.php == 8.2 | |
run: | | |
composer require "nesbot/carbon=^2.63" --dev --no-interaction --no-update | |
- name: Install dependencies | |
run: | | |
composer require "illuminate/support=^${{ matrix.laravel }}" --no-interaction --no-update | |
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress | |
- name: Execute tests | |
run: vendor/bin/phpunit --verbose |