Skip to content

Commit d6941f2

Browse files
committed
add license, github actions
1 parent ed8109f commit d6941f2

File tree

4 files changed

+81
-64
lines changed

4 files changed

+81
-64
lines changed

.github/workflows/actions.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Quality
2+
on: push
3+
jobs:
4+
cs-fixer:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Cs-Fixer
9+
run: |
10+
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
11+
chmod a+x php-cs-fixer
12+
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
13+
14+
phpstan:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
phpstan-level: [ 3, 5, 7, 8 ]
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions/cache@v2
22+
with:
23+
path: '**/vendor'
24+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-composer-
27+
- uses: php-actions/composer@v5
28+
with:
29+
args: --prefer-dist
30+
php_version: 8.0
31+
32+
- name: PHPStan
33+
uses: php-actions/phpstan@v2
34+
with:
35+
path: src/
36+
args: --level=${{ matrix.phpstan-level }}
37+
38+
phpspec:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: actions/cache@v2
43+
with:
44+
path: '**/vendor'
45+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
46+
restore-keys: |
47+
${{ runner.os }}-composer-
48+
- uses: php-actions/composer@v5
49+
with:
50+
args: --prefer-dist
51+
php_version: 8.0
52+
53+
- name: PHP Spec
54+
uses: php-actions/phpspec@master
55+
with:
56+
config: phpspec.yml

LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Kiboko Middleware
2+
3+
MIT License
4+
5+
Copyright (c) 2020 Kiboko SAS
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
},
3131
"require-dev": {
3232
"phpspec/phpspec": "^7.0",
33-
"friends-of-phpspec/phpspec-code-coverage": "6.x-dev",
34-
"phpstan/phpstan": "^0.12"
33+
"friends-of-phpspec/phpspec-code-coverage": "6.x-dev"
3534
}
3635
}

composer.lock

Lines changed: 1 addition & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)