Skip to content

Commit 9233b01

Browse files
committed
Initial commit
0 parents  commit 9233b01

12 files changed

+1389
-0
lines changed

.github/workflows/infection.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Mutations
2+
on: push
3+
jobs:
4+
infection:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: shivammathur/setup-php@v2
9+
with:
10+
php-version: '8.0'
11+
tools: composer:v2
12+
coverage: pcov
13+
- uses: actions/cache@v2
14+
with:
15+
path: '**/vendor'
16+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
17+
restore-keys: |
18+
${{ runner.os }}-composer-
19+
- uses: php-actions/composer@v5
20+
with:
21+
args: --prefer-dist
22+
php_version: 8.0
23+
24+
- name: Infection
25+
run: |
26+
wget -q https://github.com/infection/infection/releases/download/0.20.0/infection.phar
27+
wget -q https://github.com/infection/infection/releases/download/0.20.0/infection.phar.asc
28+
chmod +x infection.phar
29+
./infection.phar
30+
31+
- name: Store infection log
32+
uses: actions/upload-artifact@v2
33+
with:
34+
path: infection.log

.github/workflows/phpstan-5.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PHPStan level 5
2+
on: push
3+
jobs:
4+
phpstan:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: actions/cache@v2
9+
with:
10+
path: '**/vendor'
11+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
12+
restore-keys: |
13+
${{ runner.os }}-composer-
14+
- uses: php-actions/composer@v5
15+
with:
16+
args: --prefer-dist
17+
php_version: 8.0
18+
19+
- name: PHPStan
20+
uses: php-actions/phpstan@v2
21+
with:
22+
path: src/
23+
args: --level=5

.github/workflows/phpstan-7.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PHPStan level 7
2+
on: push
3+
jobs:
4+
phpstan:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: actions/cache@v2
9+
with:
10+
path: '**/vendor'
11+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
12+
restore-keys: |
13+
${{ runner.os }}-composer-
14+
- uses: php-actions/composer@v5
15+
with:
16+
args: --prefer-dist
17+
php_version: 8.0
18+
19+
- name: PHPStan
20+
uses: php-actions/phpstan@v2
21+
with:
22+
path: src/
23+
args: --level=5

.github/workflows/phpstan-8.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PHPStan level 8
2+
on: push
3+
jobs:
4+
phpstan:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: actions/cache@v2
9+
with:
10+
path: '**/vendor'
11+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
12+
restore-keys: |
13+
${{ runner.os }}-composer-
14+
- uses: php-actions/composer@v5
15+
with:
16+
args: --prefer-dist
17+
php_version: 8.0
18+
19+
- name: PHPStan
20+
uses: php-actions/phpstan@v2
21+
with:
22+
path: src/
23+
args: --level=5

.github/workflows/quality.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
phpunit:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.0'
21+
tools: composer:v2
22+
coverage: pcov
23+
- uses: actions/cache@v2
24+
with:
25+
path: '**/vendor'
26+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-composer-
29+
- uses: php-actions/composer@v5
30+
with:
31+
args: --prefer-dist
32+
php_version: 8.0
33+
34+
- name: Run tests & generate Coverage
35+
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
36+
37+
- name: Store coverage files
38+
uses: actions/upload-artifact@v2
39+
with:
40+
path: var/coverage
41+
42+
phpstan:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v2
46+
- uses: actions/cache@v2
47+
with:
48+
path: '**/vendor'
49+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
50+
restore-keys: |
51+
${{ runner.os }}-composer-
52+
- uses: php-actions/composer@v5
53+
with:
54+
args: --prefer-dist
55+
php_version: 8.0
56+
57+
- name: PHPStan
58+
uses: php-actions/phpstan@v2
59+
with:
60+
path: src/
61+
args: --level=4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor/

.php-cs-fixer.dist.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
$finder = (new PhpCsFixer\Finder())
4+
->in('src')
5+
;
6+
7+
return (new PhpCsFixer\Config())
8+
->setRiskyAllowed(true)
9+
->setRules([
10+
'@PHP81Migration' => true,
11+
'@PHP80Migration:risky' => true,
12+
'@PHPUnit84Migration:risky' => true,
13+
'@PSR1' => true,
14+
'@PSR12' => true,
15+
'@PhpCsFixer' => true,
16+
'@Symfony' => true,
17+
'ternary_to_elvis_operator' => true,
18+
'set_type_to_cast' => true,
19+
'self_accessor' => true,
20+
'psr_autoloading' => true,
21+
'php_unit_test_annotation' => ['style' => 'annotation'],
22+
'php_unit_set_up_tear_down_visibility' => true,
23+
'php_unit_construct' => true,
24+
'no_useless_sprintf' => true,
25+
'no_homoglyph_names' => true,
26+
'native_function_invocation' => true,
27+
'native_constant_invocation' => true,
28+
'modernize_types_casting' => true,
29+
'logical_operators' => true,
30+
'is_null' => true,
31+
'function_to_constant' => true,
32+
'fopen_flag_order' => true,
33+
'error_suppression' => true,
34+
'ereg_to_preg' => true,
35+
'dir_constant' => true,
36+
])
37+
->setFinder($finder)
38+
->setCacheFile('.php-cs-fixer.cache') // forward compatibility with 3.x line
39+
;

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: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "php-etl/action-console-runtime",
3+
"description": "This library allows you to use the action console runtime",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Kiboko SAS",
9+
"homepage": "http://kiboko.fr"
10+
},
11+
{
12+
"name": "Grégory Planchat",
13+
"email": "[email protected]"
14+
}
15+
],
16+
"minimum-stability": "dev",
17+
"prefer-stable": true,
18+
"require": {
19+
"php": "^8.0",
20+
"symfony/console": "^5.2",
21+
"php-etl/pipeline-contracts": "^0.3.0",
22+
"php-etl/console-state": "^0.1.0"
23+
},
24+
"autoload": {
25+
"psr-4": {
26+
"Kiboko\\Component\\Runtime\\Action\\": "src/"
27+
}
28+
},
29+
"config": {
30+
"bin-dir": "bin"
31+
},
32+
"extra": {
33+
"branch-alias": {
34+
"dev-main": "0.1.x-dev"
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)