Skip to content

Fix composer

Fix composer #458

Workflow file for this run

name: run-tests
on:
push:
branches:
- '*'
jobs:
run-tests:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
COMPOSER_NO_INTERACTION: 1
strategy:
fail-fast: false
matrix:
php: [ 8.2, 8.3, 8.4 ]
laravel: [ 11.*, 12.* ]
include:
- laravel: 12.*
testbench: 10.*
- laravel: 11.*
testbench: 9.*
name: PHP${{ matrix.php }} - Laravel${{ matrix.laravel }} - ${{ matrix.dependency-version }}
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, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Install dependencies
run: |
composer require "illuminate/console:${{ matrix.laravel }}" "illuminate/database:${{ matrix.laravel }}" "illuminate/filesystem:${{ matrix.laravel }}" --no-update
composer require "orchestra/testbench:${{ matrix.testbench }}" --dev --no-update
composer update --prefer-dist --no-suggest
- name: Execute tests
run: |
vendor/bin/phpunit
vendor/bin/phpunit tests/Unit/AuditTest.php --group command-line-url-resolver