Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit 8e38b83

Browse files
Merge pull request #12 from DarkGhostHunter/master
Added Laravel 7 support
2 parents 154e635 + 04cb8fb commit 8e38b83

File tree

4 files changed

+75
-43
lines changed

4 files changed

+75
-43
lines changed

.github/workflows/php.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: PHP Composer
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
php: [7.4, 7.3, 7.2.15]
15+
laravel: [7.*, 6.*]
16+
dependency-version: [prefer-lowest, prefer-stable]
17+
include:
18+
- laravel: 7.*
19+
testbench: 5.*
20+
- laravel: 6.*
21+
testbench: ^4.1
22+
23+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v1
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v1
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: mbstring, intl
34+
coverage: xdebug
35+
36+
- name: Cache dependencies
37+
uses: actions/cache@v1
38+
with:
39+
path: ~/.composer/cache/files
40+
key: ${{ runner.os }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
41+
restore-keys: ${{ runner.os }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-
42+
43+
- name: Install dependencies
44+
run: |
45+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-progress --no-update
46+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --no-suggest
47+
48+
- name: Run Tests
49+
run: composer run-script test
50+
51+
- name: Upload Coverage to Coveralls
52+
env:
53+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
COVERALLS_SERVICE_NAME: github
55+
run: |
56+
rm -rf composer.* vendor/
57+
composer require cedx/coveralls
58+
vendor/bin/coveralls build/logs/clover.xml

.travis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Paul Hanaoka - Unslash (UL) #C0zDWAPFT9A](https://images.unsplash.com/photo-1496
33

44
[![Latest Stable Version](https://poser.pugx.org/darkghosthunter/larapoke/v/stable)](https://packagist.org/packages/darkghosthunter/larapoke) [![License](https://poser.pugx.org/darkghosthunter/larapoke/license)](https://packagist.org/packages/darkghosthunter/larapoke)
55
![](https://img.shields.io/packagist/php-v/darkghosthunter/larapoke.svg)
6-
[![Build Status](https://travis-ci.com/DarkGhostHunter/Larapoke.svg?branch=master)](https://travis-ci.com/DarkGhostHunter/Larapoke) [![Coverage Status](https://coveralls.io/repos/github/DarkGhostHunter/Larapoke/badge.svg?branch=master)](https://coveralls.io/github/DarkGhostHunter/Larapoke?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/d755d23efe1f1835761e/maintainability)](https://codeclimate.com/github/DarkGhostHunter/Larapoke/maintainability)
6+
![](https://github.com/DarkGhostHunter/Larapoke/workflows/PHP%20Composer/badge.svg)
7+
[![Coverage Status](https://coveralls.io/repos/github/DarkGhostHunter/Larapoke/badge.svg?branch=master)](https://coveralls.io/github/DarkGhostHunter/Larapoke?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/d755d23efe1f1835761e/maintainability)](https://codeclimate.com/github/DarkGhostHunter/Larapoke/maintainability)
78

89
# Larapoke
910

@@ -12,7 +13,7 @@ Keep your forms alive, avoid `TokenMismatchException` by gently poking your Lara
1213
## Requirements
1314

1415
* PHP 7.2 or later
15-
* Laravel 6.x
16+
* Laravel 6 or Laravel 7
1617

1718
> Check older releases for older Laravel versions.
1819

composer.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
],
1313
"require": {
1414
"php": "^7.2",
15-
"illuminate/routing": "6.*",
16-
"illuminate/support": "6.*",
17-
"illuminate/view": "6.*",
18-
"illuminate/http": "6.*"
15+
"illuminate/routing": "^6.0||^7.0",
16+
"illuminate/support": "^6.0||^7.0",
17+
"illuminate/view": "^6.0||^7.0",
18+
"illuminate/http": "^6.0||^7.0"
1919
},
2020
"require-dev": {
21-
"laravel/ui" : "1.*",
22-
"orchestra/testbench": "4.*"
21+
"laravel/ui" : "^1.0||^2.0",
22+
"orchestra/testbench": "^4.1||^5.0"
2323
},
2424
"autoload-dev": {
2525
"psr-4": {
@@ -37,5 +37,13 @@
3737
"DarkGhostHunter\\Larapoke\\LarapokeServiceProvider"
3838
]
3939
}
40+
},
41+
"scripts": {
42+
"test": "vendor/bin/phpunit",
43+
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
44+
45+
},
46+
"config": {
47+
"sort-packages": true
4048
}
4149
}

0 commit comments

Comments
 (0)