Skip to content

tighten up tests and docs #377

tighten up tests and docs

tighten up tests and docs #377

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ["8.2", "8.3", "8.4"]
laravel: ["12.*", "13.*"]
exclude:
- php: "8.2"
laravel: "13.*"
name: PHP ${{ matrix.php }} — Laravel ${{ matrix.laravel }}
services:
redis:
image: redis:7
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 3s
--health-retries 5
steps:
- uses: actions/checkout@v6
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: redis
coverage: none
- name: Pin Laravel version
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-update --no-interaction
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
- name: Run tests
run: vendor/bin/phpunit
analyse:
runs-on: ubuntu-latest
name: Static analysis
steps:
- uses: actions/checkout@v6
- uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
coverage: none
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
- name: Run Larastan
run: vendor/bin/phpstan analyse --memory-limit=512M --error-format=github