Skip to content

Refactoring feature and state #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/phpstan-5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
with:
args: --prefer-dist
php_version: 8.0

- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
args: --level=5
level: 5
php_version: 8.0
4 changes: 2 additions & 2 deletions .github/workflows/phpstan-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
with:
args: --prefer-dist
php_version: 8.0

- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
args: --level=5
level: 7
php_version: 8.0
4 changes: 2 additions & 2 deletions .github/workflows/phpstan-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
with:
args: --prefer-dist
php_version: 8.0

- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
args: --level=5
level: 8
php_version: 8.0
112 changes: 55 additions & 57 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
@@ -1,61 +1,59 @@
name: Quality
name: Quality (PHPStan level 4)
on: push
jobs:
cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cs-Fixer
run: |
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
chmod a+x php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cs-Fixer
run: |
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
chmod a+x php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run

phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2
coverage: pcov
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2
coverage: pcov
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
- name: Run tests & generate Coverage
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
- name: Store coverage files
uses: actions/upload-artifact@v2
with:
path: var/coverage

- name: Run tests & generate Coverage
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src

- name: Store coverage files
uses: actions/upload-artifact@v2
with:
path: var/coverage

phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0

- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
args: --level=4
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
level: 4
php_version: 8.0
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Pipeline implementation
===

This package brings an implementation for the pipeline component, aimed at providing an Extract-Transform-Load pattern,
with logging, line rejections and execution states.


[![Quality](https://github.com/php-etl/pipeline/actions/workflows/quality.yaml/badge.svg)](https://github.com/php-etl/pipeline/actions/workflows/quality.yaml)
[![PHPStan level 5](https://github.com/php-etl/pipeline/actions/workflows/phpstan-5.yaml/badge.svg)](https://github.com/php-etl/pipeline/actions/workflows/phpstan-5.yaml)
[![PHPStan level 7](https://github.com/php-etl/pipeline/actions/workflows/phpstan-7.yaml/badge.svg)](https://github.com/php-etl/pipeline/actions/workflows/phpstan-7.yaml)
[![PHPStan level 8](https://github.com/php-etl/pipeline/actions/workflows/phpstan-8.yaml/badge.svg)](https://github.com/php-etl/pipeline/actions/workflows/phpstan-8.yaml)
![PHP](https://img.shields.io/packagist/php-v/php-etl/pipeline)

Documentation
---

[See full Documentation](https://php-etl.github.io/documentation)


17 changes: 9 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,22 @@
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^8.0",
"psr/log": "^1.1@dev",
"psr/log": "^3.0",
"php-etl/bucket": "^0.2.0",
"php-etl/pipeline-contracts": "^0.2.0",
"php-etl/pipeline-contracts": "^0.3.0",
"php-etl/bucket-contracts": "^0.1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"johnkary/phpunit-speedtrap": "*",
"mybuilder/phpunit-accelerator": "*",
"phpunit/php-invoker": "*",
"fzaninotto/faker": "^1.9@dev",
"phpspec/phpspec": "^7.0",
"friends-of-phpspec/phpspec-code-coverage": "*"
"phpunit/php-invoker": "*"
},
"provide": {
"php-etl/pipeline-implementation": "0.3.0"
},
"autoload": {
"psr-4": {
Expand All @@ -37,15 +38,15 @@
},
"autoload-dev": {
"psr-4": {
"unit\\Kiboko\\Component\\ETL\\Pipeline\\": "unit/"
"unit\\Kiboko\\Component\\ETL\\Pipeline\\": "tests/unit/"
}
},
"config": {
"bin-dir": "bin"
},
"extra": {
"branch-alias": {
"dev-master": "0.3.x-dev"
"dev-master": "0.4.x-dev"
}
}
}
Loading