File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI Build
2+
3+ on :
4+ - push
5+ - pull_request
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ php : [ '7.4' ]
13+ name : Run CI PHP ${{ matrix.php }}
14+ steps :
15+ - uses : actions/checkout@master
16+ - name : Setup PHP
17+ uses : nanasess/setup-php@master
18+ with :
19+ php-version : ${{ matrix.php }}
20+ - run : php -v
21+
22+ - name : Run CI
23+ run : |
24+ composer validate
25+ make ci
Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ coverage.clover
33.php_cs.cache
44build
55vendor
6+ composer.lock
7+ .phpunit.result.cache
8+ .php-cs-fixer.cache
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 66 - Review existing issues and provide feedback or react to them.
77
88- With pull requests:
9- - Open your pull request against ` master `
9+ - Open your pull request against ` main `
1010 - Your pull request should have no more than two commits, if not you should squash them.
1111 - It should pass all tests in the available continuous integrations systems such as TravisCI.
1212 - You should add/modify tests to cover your proposed code changes.
Original file line number Diff line number Diff line change @@ -7,18 +7,20 @@ composer:
77
88
99fix :
10- ./vendor/bin/php-cs-fixer fix
10+ vendor/bin/php-cs-fixer fix src
11+ vendor/bin/php-cs-fixer fix tests
1112
1213
1314fix-diff :
14- ./vendor/bin/php-cs-fixer fix --diff --dry-run -v
15+ ./vendor/bin/php-cs-fixer fix src --diff --dry-run -v
16+ ./vendor/bin/php-cs-fixer fix tests --diff --dry-run -v
1517
1618
1719test : composer
18- vendor/bin/phpunit -c . --coverage-text
20+ vendor/bin/phpunit -c .
1921
2022
21- lint : lint-php phpcs php-cs lint-composer lint-eol
23+ lint : lint-php phpcs fix-diff lint-composer lint-eol
2224 @echo All good.
2325
2426
4244 vendor/bin/phpcs
4345
4446
45- php-cs :
46- vendor/bin/php-cs-fixer fix --diff --dry-run -v
47+ coverage : composer
48+ vendor/bin/phpunit -c .
4749
4850
4951outdated :
@@ -54,4 +56,4 @@ ci: composer lint test outdated
5456 @echo " All quality checks passed"
5557
5658
57- .PHONY : test composer phpcs php-cs lint lint-php ci
59+ .PHONY : test composer coverage phpcs php-cs lint lint-php ci
Original file line number Diff line number Diff line change 11<p align =" center " >
2- <img alt="chunk Logo" src="https://raw.githubusercontent.com/clivern/chunk/master/assets/img/gopher.png?v=1.6 .0" width="180" />
2+ <img alt="chunk Logo" src="https://raw.githubusercontent.com/clivern/chunk/master/assets/img/gopher.png?v=2.0 .0" width="180" />
33 <h3 align="center">Chunk</h3>
44 <p align="center">Asynchronous Task Queue Based on Distributed Message Passing for PHP</p>
55 <p align="center">
6- <a href="https://travis-ci.com/Clivern/Chunk"><img src="https://travis-ci.com/Clivern/Chunk.svg?branch=master"></a>
7- <a href="https://packagist.org/packages/clivern/chunk"><img src="https://img.shields.io/badge/Version-1.6.0-red.svg"></a>
8- <a href="https://github.com/Clivern/Chunk/blob/master/LICENSE"><img src="https://img.shields.io/badge/LICENSE-MIT-orange.svg"></a>
6+ <a href="https://github.com/clivern/chunk/actions/workflows/php.yml">
7+ <img src="https://github.com/clivern/chunk/actions/workflows/php.yml/badge.svg">
8+ </a>
9+ <a href="https://packagist.org/packages/clivern/chunk">
10+ <img src="https://img.shields.io/badge/Version-2.0.0-red.svg">
11+ </a>
12+ <a href="https://github.com/Clivern/Chunk/blob/master/LICENSE">
13+ <img src="https://img.shields.io/badge/LICENSE-MIT-orange.svg">
14+ </a>
915 </p>
1016</p >
1117
Original file line number Diff line number Diff line change 1919 "ramsey/uuid" : " ^4.1"
2020 },
2121 "require-dev" : {
22- "friendsofphp/php-cs-fixer " : " 2.16.7 " ,
23- "squizlabs/php_codesniffer " : " 3 .5.8 " ,
24- "phpunit/phpunit " : " 7.5.20 "
22+ "squizlabs/php_codesniffer " : " 3.6.0 " ,
23+ "phpunit/phpunit " : " 9 .5.6 " ,
24+ "friendsofphp/php-cs-fixer " : " 3.0.0 "
2525 },
2626 "autoload" : {
2727 "psr-4" : {
You can’t perform that action at this time.
0 commit comments