Skip to content

Merge pull request #17 from Kekos/di #88

Merge pull request #17 from Kekos/di

Merge pull request #17 from Kekos/di #88

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.0', '8.1', '8.2']
laravel: ['^6.0', '^7.0', '^8.0', '^9.0', '^10.0', '^11.0']
exclude:
- php: '8.0'
laravel: '^10.0'
- php: '8.0'
laravel: '^11.0'
- php: '8.1'
laravel: '^11.0'
steps:
- uses: actions/checkout@v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: bcmath, ctype, fileinfo, json, mbstring, openssl, pdo, pdo_sqlite, tokenizer, xml
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --no-interaction --prefer-dist --no-progress
- name: Run test suite
run: composer run-script test