Skip to content

Merge pull request #60 from asbiin/patch-1 #199

Merge pull request #60 from asbiin/patch-1

Merge pull request #60 from asbiin/patch-1 #199

Workflow file for this run

name: tests
on:
push:
branches:
- master
- 0.x
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [ '8.0', '8.1', '8.2', '8.3' ]
laravel: [ '8.0', '9.33', '10.0', '11.0' ]
stability: [ prefer-lowest, prefer-stable ]
exclude:
- php: '8.0'
laravel: '10.0'
- php: '8.0'
laravel: '11.0'
- php: '8.1'
laravel: '11.0'
- laravel: '8.0'
stability: prefer-lowest
name: php-${{ matrix.php }} - laravel-${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, fileinfo
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer require "illuminate/support:^${{ matrix.laravel }}" --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit --no-coverage