Skip to content

tests

tests #1614

Workflow file for this run

name: tests
on:
push:
branches:
- 'main'
- 'master'
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.2, 8.3, 8.4 ]
illuminate: [ ^10.0, ^11.0 ]
stability: [ prefer-lowest, prefer-stable ]
include:
- illuminate: ^10.0
testbench: 8.*
- illuminate: ^11.0
testbench: 9.*
exclude:
- php: 8.1
illuminate: ^11.0
- php: 8.4
illuminate: ^10.0
name: P${{ matrix.php }} - I${{ matrix.illuminate }} - ${{ matrix.stability }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, libxml, mbstring, zip, pcntl
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.illuminate }}" --no-interaction --no-update
composer require "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit