Skip to content

Commit 61cd002

Browse files
committed
Merge branch 'release/2.2.0'
2 parents abcfcd7 + a774ad8 commit 61cd002

19 files changed

+455
-133
lines changed

.github/dependabot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ updates:
55
schedule:
66
interval: "daily"
77
reviewers:
8-
- PKuebler
8+
- tristansb1
99
- krns
1010
assignees:
11-
- PKuebler
11+
- tristansb1

.github/workflows/lint.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: "Lint PHP"
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
jobs:
9+
phpcs:
10+
name: PHPCS
11+
runs-on: ubuntu-20.04
12+
strategy:
13+
matrix:
14+
php-versions: ['7.4']
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Setup
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php-versions }}
23+
extensions: mbstring, curl, zip
24+
coverage: none
25+
tools: composer
26+
27+
- name: Install dependencies
28+
run: composer update --no-interaction --no-suggest --no-progress --optimize-autoloader
29+
30+
- name: Run
31+
run: composer run lint:phpcs
32+
phpmd:
33+
name: PHPMD
34+
runs-on: ubuntu-20.04
35+
strategy:
36+
matrix:
37+
php-versions: ['7.4']
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v2
41+
42+
- name: Setup
43+
uses: shivammathur/setup-php@v2
44+
with:
45+
php-version: ${{ matrix.php-versions }}
46+
extensions: mbstring, curl, zip
47+
coverage: none
48+
tools: composer
49+
50+
- name: Install dependencies
51+
run: composer update --no-interaction --no-suggest --no-progress --optimize-autoloader
52+
53+
- name: Run
54+
run: composer run lint:phpmd

.github/workflows/test.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "Test PHP"
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
jobs:
9+
phpunit:
10+
name: PHPUnit
11+
runs-on: ubuntu-20.04
12+
strategy:
13+
matrix:
14+
php-versions: ['7.3', '7.4', '8.0']
15+
composer-arguments: ['--prefer-lowest', '']
16+
allowed-to-fail: [false]
17+
include:
18+
- php-versions: '8.1'
19+
composer-arguments: ['--prefer-lowest', '']
20+
allowed-to-fail: true
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v2
25+
26+
- name: Setup
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-versions }}
30+
extensions: mbstring, curl, zip
31+
coverage: xdebug
32+
tools: composer
33+
34+
- name: Install dependencies
35+
continue-on-error: ${{ matrix.allowed-to-fail }}
36+
run: composer update --no-interaction --no-suggest --no-progress --optimize-autoloader ${{ matrix.composer-arguments }}
37+
38+
- name: Run tests
39+
continue-on-error: ${{ matrix.allowed-to-fail }}
40+
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

.travis.yml

-25
This file was deleted.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# laravel-static-permission
22

3+
[![Tests](https://github.com/sourceboat/laravel-static-permission/actions/workflows/test.yaml/badge.svg?branch=develop)](https://github.com/sourceboat/laravel-static-permission/actions/workflows/test.yaml)
34
[![Latest Version on Packagist](https://img.shields.io/packagist/v/sourceboat/laravel-static-permission.svg?style=flat-square)](https://packagist.org/packages/sourceboat/laravel-static-permission)
4-
[![Build Status](https://img.shields.io/travis/sourceboat/laravel-static-permission/master.svg?style=flat-square)](https://travis-ci.org/sourceboat/laravel-static-permission)
55
[![Total Downloads](https://img.shields.io/packagist/dt/sourceboat/laravel-static-permission.svg?style=flat-square)](https://packagist.org/packages/sourceboat/laravel-static-permission)
66

77
Manage user permissions and roles in your Laravel application by domain driven rules.
@@ -253,6 +253,7 @@ composer lint:phpmd
253253
This package is heavily inspired by [Spatie / laravel-permission](https://github.com/spatie/laravel-permission).
254254

255255
- [Philipp Kübler](https://github.com/pkuebler)
256+
- [Tristan Damm](tristansb1)
256257
- [All Contributors](https://github.com/sourceboat/laravel-static-permission/graphs/contributors)
257258

258259
## License

composer.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@
2020
],
2121
"require": {
2222
"php": ">=7.3",
23-
"laravel/framework": "^6.0|^7.0|^8.0"
23+
"illuminate/support": "^6.0|^7.0|^8.0",
24+
"illuminate/view": "^6.0|^7.0|^8.0",
25+
"illuminate/http": "^6.0|^7.0|^8.0"
2426
},
2527
"require-dev": {
2628
"orchestra/testbench": "^5.0 || ^6.0",
2729
"phpunit/phpunit": "^9.3",
2830
"phpmd/phpmd": "^2.6",
2931
"squizlabs/php_codesniffer": "^3.3",
30-
"consistence/coding-standard": "^3.8",
31-
"slevomat/coding-standard": "^6.3"
32+
"slevomat/coding-standard": "^7.0"
3233
},
3334
"autoload": {
3435
"psr-4": {
@@ -37,7 +38,7 @@
3738
},
3839
"autoload-dev": {
3940
"psr-4": {
40-
"Sourceboat\\Permission\\Test\\": "tests"
41+
"Sourceboat\\Permission\\Tests\\": "tests"
4142
}
4243
},
4344
"scripts": {

0 commit comments

Comments
 (0)