Skip to content

Commit c20358c

Browse files
committed
update
1 parent dd1c72a commit c20358c

15 files changed

Lines changed: 77 additions & 3995 deletions

File tree

.github/workflows/php.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ coverage.clover
33
.php_cs.cache
44
build
55
vendor
6+
composer.lock
7+
.phpunit.result.cache
8+
.php-cs-fixer.cache

.gitmodules

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

.php_cs.dist

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

.travis.yml

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

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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.

Makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ composer:
77

88

99
fix:
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

1314
fix-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

1719
test: 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

@@ -42,8 +44,8 @@ phpcs:
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

4951
outdated:
@@ -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

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
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

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
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": {

0 commit comments

Comments
 (0)