Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ name: PHP Composer

on:
push:
branches: [ master ]
branches:
- 'master'
pull_request:
branches: [ master ]
branches:
- 'master'

jobs:
build:

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ '7.2', '7.3', '7.4' ]
laravel: [ '5.5.*', '5.6.*', '5.7.*', '5.8.*', '^6.0', '^7.0' ]

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

steps:
- uses: actions/checkout@v2

Expand All @@ -29,20 +29,15 @@ jobs:
- uses: shivammathur/setup-php@v1
with:
php-version: ${{ matrix.php }}
coverage: xdebug
coverage: none

- name: Validate composer.json and composer.lock
- name: Validate composer.json
run: composer validate

- name: Install dependencies
run: |
composer require "illuminate/support:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update
composer require "illuminate/support:${{ matrix.laravel }}" "illuminate/http:${{ matrix.laravel }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest

- name: Run test
run: ./vendor/bin/phpunit --coverage-clover=coverage.clover --verbose

- name: External Code Coverage
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
run: ./vendor/bin/phpunit --verbose
20 changes: 13 additions & 7 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
filter:
paths:
- 'src/*'
- 'src/'
excluded_paths:
- 'tests/*'
- 'vendor/*'
- 'tests/'
dependency_paths:
- 'vendor/'

checks:
php: true

tools:
external_code_coverage:
runs: 3
timeout: 1200
build:
nodes:
coverage:
tests:
override:
- command: ./vendor/bin/phpunit --coverage-clover=coverage.clover
coverage:
file: coverage.clover
format: clover
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
],
"require": {
"php": "^7.1",
"illuminate/support": "^5.5 || ^6.0",
"illuminate/http": "^5.5 || ^6.0"
"illuminate/support": "^5.5 || ^6.0 || ^7.0",
"illuminate/http": "^5.5 || ^6.0 || ^7.0"
},
"require-dev": {
"orchestra/testbench": "^3.5 || ^4.0 || ^5.0",
Expand Down