Skip to content

WIP

WIP #432

Workflow file for this run

name: Tests
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ "8.1", "8.2" ]
laravel: [ "9.0", "10.0" ]
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: default
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, bcmath
coverage: none
- name: Install dependencies
run: composer require laravel/framework:^${{ matrix.laravel }}
- name: Execute tests
run: sudo vendor/bin/phpunit
env:
MYSQL_HOST: 127.0.0.1