Skip to content

github-actions(deps): bump shivammathur/setup-php from 2.29.0 to 2.30.1 #351

github-actions(deps): bump shivammathur/setup-php from 2.29.0 to 2.30.1

github-actions(deps): bump shivammathur/setup-php from 2.29.0 to 2.30.1 #351

Workflow file for this run

name: Tests
on:
- push
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2']
laravel: ['9.*', '10.*', '11.*']
dependency-version: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 11.*
php: '8.1'
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@2.30.1
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
env:
APP_ENV: testing
- name: Run tests
run: composer run test
env:
APP_ENV: testing
- uses: codecov/codecov-action@v4
name: Push coverage to codecov
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./clover.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true