Skip to content

Commit

Permalink
Merge pull request #45 from darkwood-fr/1.x-dev
Browse files Browse the repository at this point in the history
v1.1.4
  • Loading branch information
matyo91 authored Sep 17, 2023
2 parents b74d386 + cd7d89d commit 3194ac9
Show file tree
Hide file tree
Showing 108 changed files with 26,179 additions and 406 deletions.
4 changes: 1 addition & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# editorconfig.org

root = true
root = true # https://editorconfig.org

[*]
end_of_line = lf
Expand Down
174 changes: 164 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,57 @@ on:
pull_request:

jobs:
cs-fix:
# infection:
# name: Run Infection
# runs-on: ubuntu-latest
# strategy:
# matrix:
# php: [ '8.2' ]
# steps:
# - name: Init repository
# uses: actions/checkout@v3
#
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# extensions: xsl, openswoole
# tools: composer
#
# - name: Install dependencies
# run: |
# composer install
# composer install -d tools/infection
#
# - name: Run Infection
# run: (cd tools && infection/vendor/bin/infection --configuration=infection/infection.json)

# phan:
# name: Run Phan
# runs-on: ubuntu-latest
# strategy:
# matrix:
# php: [ '8.2' ]
# steps:
# - name: Init repository
# uses: actions/checkout@v3
#
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# extensions: xsl, openswoole, ast
# tools: composer
#
# - name: Install dependencies
# run: |
# composer install
# composer install -d tools/phan
#
# - name: Run Phan
# run: (cd tools && phan/vendor/bin/phan --config-file phan/phan.php)

php-cs-fixer:
name: Check and fix coding styles using PHP CS Fixer
runs-on: ubuntu-latest
strategy:
Expand All @@ -26,10 +76,87 @@ jobs:
coverage: none # disable XDebug for tests

- name: Install dependencies
run: composer install -d tools/php-cs-fixer
run: |
composer install
composer install -d tools/php-cs-fixer
- name: Check and fix coding styles using PHP CS Fixer
run: (cd tools && php-cs-fixer/vendor/bin/php-cs-fixer fix --config php-cs-fixer/.php-cs-fixer.php --diff --dry-run)

# phpcbf:
# name: Clean code with PHP Code Beautifier and Fixer
# runs-on: ubuntu-latest
# strategy:
# matrix:
# php: [ '8.2' ]
# steps:
# - name: Init repository
# uses: actions/checkout@v3
#
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# extensions: xsl, openswoole, ast
# tools: composer
#
# - name: Install dependencies
# run: |
# composer install
# composer install -d tools/phpcbf
#
# - name: Clean code with PHP Code Beautifier and Fixer
# run: (cd tools && phpcbf/vendor/bin/phpcbf --standard=phpcbf/phpcs.xml)

- name: PHP-CS-Fixer
run: tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config .php-cs-fixer.php --diff --dry-run
# phpcs:
# name: Run PHP Code Sniffer
# runs-on: ubuntu-latest
# strategy:
# matrix:
# php: [ '8.2' ]
# steps:
# - name: Init repository
# uses: actions/checkout@v3
#
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# extensions: xsl, openswoole, ast
# tools: composer
#
# - name: Install dependencies
# run: |
# composer install
# composer install -d tools/phpcs
#
# - name: Run PHP Code Sniffer
# run: (cd tools && phpcs/vendor/bin/phpcs --standard=phpcs/phpcs.xml)

# phpmd:
# name: Run PHP Mess Detector
# runs-on: ubuntu-latest
# strategy:
# matrix:
# php: [ '8.2' ]
# steps:
# - name: Init repository
# uses: actions/checkout@v3
#
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# extensions: xsl, openswoole
# tools: composer
#
# - name: Install dependencies
# run: |
# composer install
# composer install -d tools/phpmd
#
# - name: Run PHP Mess Detector
# run: (cd tools && phpmd/vendor/bin/phpmd ../examples/,../src/,../tests/ text phpmd/phpmd.xml)

phpstan:
name: Execute PHPStan analysis
Expand All @@ -51,11 +178,11 @@ jobs:

- name: 'Install dependencies'
run: |
composer install -d tools/phpstan
composer install
composer install -d tools/phpstan
- name: PHPStan
run: tools/phpstan/vendor/bin/phpstan --configuration=phpstan.neon
- name: Execute PHPStan analysis
run: (cd tools && phpstan/vendor/bin/phpstan --configuration=phpstan/phpstan.neon)

phpunit:
name: Launch PHPUnit test suite
Expand All @@ -76,7 +203,34 @@ jobs:
coverage: none # disable XDebug for tests

- name: Install dependencies
run: composer install
run: |
composer install
composer install -d tools/phpunit
- name: Launch PHPUnit test suite
run: (cd tools && phpunit/vendor/bin/phpunit --configuration phpunit/phpunit.xml)

- name: PHPUnit
run: vendor/bin/phpunit
# psalm:
# name: Run PHP Mess Detector
# runs-on: ubuntu-latest
# strategy:
# matrix:
# php: [ '8.2' ]
# steps:
# - name: Init repository
# uses: actions/checkout@v3
#
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# extensions: xsl, openswoole
# tools: composer
#
# - name: Install dependencies
# run: |
# composer install
# composer install -d tools/psalm
#
# - name: Run PHP Mess Detector
# run: (cd tools && psalm/vendor/bin/psalm --no-cache --config psalm/psalm.xml)
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Docs
/docs/node_modules
/docs/src/public
/docs/src/resources
/docs/node_modules/
/docs/src/public/
/docs/src/resources/

# PHP
/.castor.stub.php
/.php-cs-fixer.cache
/.phpunit.cache
/composer.lock
/vendor/
42 changes: 25 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
### 1.1.3
# Changelog

## v1.1.x

- Add generic templating
- Add Flow\Driver\RevoltDriver
- Add Flow\Driver\SpatieDriver
- Add more quality tools from https://github.com/IngeniozIT/php-skeleton

## v1.1.3

- Update DX for Flow\DriverInterface
- Update `async` that now $onResolve get called with async $callback result or Flow\Exception as first argument
- Update `tick` that now return a Closure to cleanup tick interval
- Remove `start` and `stop`
- Add Fiber Driver from https://github.com/jolicode/castor/blob/main/src/functions.php
- Add Flow\Driver\FiberDriver from https://github.com/jolicode/castor/blob/main/src/functions.php
- Upgrade to Symfony 6.3 and PHPUnit 10.3
- Refactor docs structure
- Refactor tooling from https://github.com/jolicode/castor

### 1.1.2
## v1.1.2

- Update to PHP 8.2
- Upgrade from amphp/amp v2 to amphp/amp v3 that use PHP Fibers
Expand All @@ -18,7 +26,7 @@
- Rename function `corouting` to `async` in Flow\DriverInterface
- Add function `sleep` in Flow\DriverInterface

### 1.1.1
## v1.1.1

- Rename entire project from `Railway FBP` to `Flow`
- Bundle `Flow` to PHP monorepository
Expand All @@ -32,55 +40,55 @@
- Update `Flow\IP` that use readonly object
- New Flow logo

### 1.1.0
## v1.1.0

- Release MIT License
- Update dependencies to PHP 8.1

### 1.0.9
## v1.0.9

- Add `Flow\Flow\YFlow` that allows introduce recursivity into Flow language approach

### 1.0.8
## v1.0.8

- Add code of conduct

### 1.0.7
## v1.0.7

- Define Monads

### 1.0.6
## v1.0.6

- Add `Flow\TransportFlow`
- Flow can process multiple jobs in parallel

### 1.0.5
## v1.0.5

- Add Symfony integration
- Define monads

### 1.0.4
## v1.0.4

- Refactor structure
- Decouple integration

### 1.0.3
## v1.0.3

- Add `Flow\IpStrategy` add several Ip strategy for data processing

### 1.0.2
## v1.0.2

- Add `Flow\Driver\DriverInterface`
- Add `Flow\Driver\AmpDriver`
- Add `Flow\Driver\ReactDriver`
- Add `Flow\Driver\SwooleDriver`

### 1.0.1
## v1.0.1

- Add `Flow\Producer\CollectionConsumer`
- Add `Flow\Producer\CollectionProducer`
- Add `Flow\Transport\CollectionTransport`

# 1.0.0
## v1.0.0

- Initial release
- Initial release
20 changes: 10 additions & 10 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down
Loading

0 comments on commit 3194ac9

Please sign in to comment.