Skip to content

Commit c49f512

Browse files
authored
Merge pull request #9 from php-etl/feature/update-pipeline-contracts
feature/update-pipeline-contracts : update pipeline contracts
2 parents e9467f1 + 0e8cf7d commit c49f512

26 files changed

+767
-602
lines changed

.github/workflows/actions.yml

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

.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+
- name: PHPStan
19+
uses: php-actions/phpstan@v2
20+
with:
21+
path: src/
22+
level: 5
23+
php_version: 8.0

.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+
- name: PHPStan
19+
uses: php-actions/phpstan@v2
20+
with:
21+
path: src/
22+
level: 7
23+
php_version: 8.0

.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+
- name: PHPStan
19+
uses: php-actions/phpstan@v2
20+
with:
21+
path: src/
22+
level: 8
23+
php_version: 8.0

.github/workflows/quality.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Quality (PHPStan level 4)
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+
extensions: zip, xdebug
24+
- uses: actions/cache@v2
25+
with:
26+
path: '**/vendor'
27+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-composer-
30+
- uses: php-actions/composer@v5
31+
with:
32+
args: --prefer-dist
33+
php_version: 8.0
34+
php_extensions: zip xdebug
35+
- name: Run tests & generate Coverage
36+
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
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+
php_extensions: zip xdebug
57+
- name: PHPStan
58+
uses: php-actions/phpstan@v2
59+
with:
60+
path: src/
61+
level: 4
62+
php_version: 8.0
63+
php_extensions: zip xdebug

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
spreadsheet-flow
2+
===
3+
4+
This package brings tools to read and write into spreadsheet files from a pipeline.
5+
6+
7+
[![Quality](https://github.com/php-etl/spreadsheet-flow/actions/workflows/quality.yaml/badge.svg)](https://github.com/php-etl/spreadsheet-flow/actions/workflows/quality.yaml)
8+
[![PHPStan level 5](https://github.com/php-etl/spreadsheet-flow/actions/workflows/phpstan-5.yaml/badge.svg)](https://github.com/php-etl/spreadsheet-flow/actions/workflows/phpstan-5.yaml)
9+
[![PHPStan level 7](https://github.com/php-etl/spreadsheet-flow/actions/workflows/phpstan-7.yaml/badge.svg)](https://github.com/php-etl/spreadsheet-flow/actions/workflows/phpstan-7.yaml)
10+
[![PHPStan level 8](https://github.com/php-etl/spreadsheet-flow/actions/workflows/phpstan-8.yaml/badge.svg)](https://github.com/php-etl/spreadsheet-flow/actions/workflows/phpstan-8.yaml)
11+
![PHP](https://img.shields.io/packagist/php-v/php-etl/spreadsheet-flow)
12+
13+
Documentation
14+
---
15+
16+
[See full Documentation](https://php-etl.github.io/documentation)
17+
18+

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"php-etl/bucket": "^0.2.0",
2828
"psr/log": "^1.1",
2929
"box/spout": "^3.1",
30-
"php-etl/phpunit-extension": "^0.2.0"
30+
"php-etl/pipeline-contracts": "^0.3.0"
3131
},
3232
"autoload": {
3333
"psr-4": {
@@ -47,6 +47,7 @@
4747
"require-dev": {
4848
"ext-xdebug": "*",
4949
"adlawson/vfs": "dev-develop",
50-
"phpunit/phpunit": "^9.0"
50+
"phpunit/phpunit": "^9.0",
51+
"php-etl/phpunit-extension": "*"
5152
}
5253
}

0 commit comments

Comments
 (0)