-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from php-etl/refactoring/feature-and-state
Refactoring feature and state
- Loading branch information
Showing
18 changed files
with
471 additions
and
1,953 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.