Skip to content

[3.x] Reconceptualize service DTO to config. #225

[3.x] Reconceptualize service DTO to config.

[3.x] Reconceptualize service DTO to config. #225

Workflow file for this run

name: Run tests
on:
push:
branches:
- master
- '*.x'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]
laravel: [10.*, 11.*]
dependency-version: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 11.*
php: 8.1
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2, phpunit
- name: Install dependencies
run: |
composer require "orchestra/testbench:${{ matrix.testbench }}" --dev --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}