Skip to content

Commit dd1b595

Browse files
authored
Merge pull request #10 from cesargb/php8
Add support to php8
2 parents 3c247bd + 2072963 commit dd1b595

File tree

3 files changed

+50
-4
lines changed

3 files changed

+50
-4
lines changed

.github/workflows/tests.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
run-tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php: [7.3, 7.4, 8.0]
16+
laravel: [8.*, 7.*, 6.*]
17+
dependency-version: [prefer-stable]
18+
include:
19+
- laravel: 8.*
20+
testbench: 6.*
21+
- laravel: 7.*
22+
testbench: 5.*
23+
- laravel: 6.*
24+
testbench: 4.*
25+
26+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
27+
28+
steps:
29+
- name: Update apt
30+
run: sudo apt-get update --fix-missing
31+
32+
- name: Checkout code
33+
uses: actions/checkout@v2
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php }}
39+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, exif
40+
coverage: none
41+
42+
- name: Install dependencies
43+
run: |
44+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
46+
- name: Execute tests
47+
run: vendor/bin/phpunit

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/cesargb/laravel-cascade-delete.svg?branch=master)](https://travis-ci.org/cesargb/laravel-cascade-delete)
1+
![tests](https://github.com/cesargb/laravel-cascade-delete/workflows/tests/badge.svg)
22
[![StyleCI](https://github.styleci.io/repos/144183283/shield?branch=master)](https://github.styleci.io/repos/144183283)
33
[![Quality Score](https://img.shields.io/scrutinizer/g/cesargb/laravel-cascade-delete.svg?style=flat-square)](https://scrutinizer-ci.com/g/cesargb/laravel-cascade-delete)
44
[![Total Downloads](https://img.shields.io/packagist/dt/cesargb/laravel-cascade-delete.svg?style=flat-square)](https://packagist.org/packages/cesargb/laravel-cascade-delete)

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@
1212
],
1313
"type": "library",
1414
"require": {
15-
"php": "^7.1",
15+
"php": "^7.2|^8.0",
1616
"illuminate/console": "^6.0|^7.0|^8.0",
1717
"illuminate/database": "^6.0|^7.0|^8.0",
1818
"illuminate/events": "^6.0|^7.0|^8.0",
1919
"illuminate/support": "^6.0|^7.0|^8.0"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "^7.0|^8.0",
22+
"phpunit/phpunit": "^7.0|^8.0|^9.0",
2323
"orchestra/testbench": "^4.0|^5.0|^6.0",
24-
"friendsofphp/php-cs-fixer": "^2.14",
2524
"laravel/legacy-factories": "^1.0.4"
2625
},
2726
"autoload": {

0 commit comments

Comments
 (0)