Skip to content

[4.x] Fix remaining missing types, use readonly (#4410) #58

[4.x] Fix remaining missing types, use readonly (#4410)

[4.x] Fix remaining missing types, use readonly (#4410) #58

Workflow file for this run

name: 'Tests'
on:
push:
branches:
- 4.x
pull_request:
branches:
- 4.x
schedule:
- cron: '0 0 * * *'
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: 'PHP${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}'
runs-on: ubuntu-latest
permissions: {}
strategy:
fail-fast: false
matrix:
php: [ 8.3, 8.4, 8.5 ]
laravel: [ 12, 13 ]
dependency-version: [ prefer-stable ]
include:
- laravel: 12
php: 8.3
scout: 10.*
testbench: 10.*
dependency-version: prefer-lowest
- laravel: 13
scout: 11.*
testbench: 11.*
- laravel: 12
scout: 10.*
testbench: 10.*
exclude:
- laravel: 13
php: 8.3
steps:
- name: 'Checkout'
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: 'Setup PHP'
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, gd, exif, iconv
coverage: none
- name: 'Cache dependencies'
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ runner.temp }}/composer-cache
key: composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.dependency-version }}-
composer-${{ matrix.php }}-${{ matrix.laravel }}-
composer-${{ matrix.php }}-
- name: 'Install dependencies'
run: |
composer require "laravel/framework:${LARAVEL_VERSION}.*" -n --no-update --ansi
composer require --dev "orchestra/testbench:${TESTBENCH_VERSION}" "laravel/scout:${SCOUT_VERSION}" -n --no-update --ansi
composer update "--${DEPENDENCY_VERSION}" --prefer-dist -n --ansi
env:
COMPOSER_CACHE_DIR: ${{ runner.temp }}/composer-cache
LARAVEL_VERSION: ${{ matrix.laravel }}
TESTBENCH_VERSION: ${{ matrix.testbench }}
SCOUT_VERSION: ${{ matrix.scout }}
DEPENDENCY_VERSION: ${{ matrix.dependency-version }}
- name: 'Execute tests'
run: vendor/bin/paratest --configuration phpunit.xml.dist --no-progress --colors=always