Skip to content

Fix deprecated workflows #74

Fix deprecated workflows

Fix deprecated workflows #74

Workflow file for this run

name: Testing
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
max-parallel: 3
matrix:
php: [ 8.2, 8.1, 8.0 ]
laravel: [ 10.*, 9.*, 8.* ]
dependency-version: [ prefer-stable ]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
exclude:
- laravel: 10.*
php: 8.0
name: PHP ${{ matrix.php }} - L${{ matrix.laravel }}
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
extensions: xdebug
- name: Install Dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests (Unit and Feature)
run: vendor/bin/phpunit --coverage-text
- name: Static analysis with PHPStan
run: vendor/bin/phpstan analyse
- name: Static analysis with Psalm
run: vendor/bin/psalm
- name: Coding style PSR12 Check
run: vendor/bin/phpcs