Skip to content

WIP

WIP #30

Workflow file for this run

name: Run tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:

Check failure on line 15 in .github/workflows/run-tests.yml

View workflow run for this annotation

GitHub Actions / Run tests

Invalid workflow file

The workflow is not valid. .github/workflows/run-tests.yml (Line: 15, Col: 14): Unexpected value '' .github/workflows/run-tests.yml (Line: 16, Col: 5): Unexpected value 'fail-fast'
fail-fast: false
matrix:
include:
- php: 8.2
laravel: '11.*'
testbench: '9.*'
larastan: true
dependency-version: prefer-stable
os: ubuntu-latest
- php: 8.2
laravel: '12.*'
testbench: '10.*'
larastan: false
dependency-version: prefer-stable
os: ubuntu-latest
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- 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 "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
if [ "${{ matrix.larastan }}" = "true" ]; then
composer require "larastan/larastan" --dev --no-interaction --no-update
fi
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit