Skip to content

chore: update deps

chore: update deps #22

Workflow file for this run

name: Run tests
on:
push:
branches:
- master
paths:
- "**/*.php"
pull_request:
jobs:
php-tests:
runs-on: ubuntu-22.04
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]
laravel: [10.*]
testbench: [8.*]
## Prepare for Laravel 11
# php: [8.1, 8.2, 8.3]
# laravel: [10.*, 11.*]
# include:
# - laravel: 11.*
# - testbench: 9.*
# - laravel: 10.*
# - testbench: 8.*
# exclude:
# - laravel: 11.*
# php: 8.1
env:
DB_DATABASE: testing
DB_USERNAME: root
DB_PASSWORD: password
name: PHP ${{ matrix.php }} | Laravel - ${{ matrix.laravel }}
services:
mysql:
image: mysql:latest
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_DATABASE: testing
MYSQL_ROOT_PASSWORD: password
ports:
- 3306/tcp
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4
# see https://github.com/shivammathur/setup-php
- name: Prepare PHP test environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction
- name: Running tests
run: ./vendor/bin/pest --bail
env:
DB_PORT: ${{ job.services.postgres.ports[3306] }} # only for MySQL