Skip to content

Commit dc91371

Browse files
authored
Merge pull request #53 from jaylinski/php81
Move away from GrumPHP and test on PHP 8.1
2 parents 6019f03 + 473b4d4 commit dc91371

File tree

6 files changed

+29
-51
lines changed

6 files changed

+29
-51
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
17-
php-versions: ['7.3', '7.4', '8.0']
17+
php-versions: ['7.3', '7.4', '8.0', '8.1']
1818
composer-versions: ['composer:v1', 'composer:v2']
1919

2020
steps:
@@ -47,14 +47,13 @@ jobs:
4747
restore-keys: ${{ runner.os }}-composer-
4848

4949
- name: Install dependencies
50-
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
50+
run: composer install --no-progress --prefer-dist --optimize-autoloader
5151

52-
- name: Run Grumphp
53-
run: vendor/bin/grumphp run --no-ansi -n
54-
55-
- name: Send PSALM data
56-
run: vendor/bin/psalm --shepherd --stats src/
57-
continue-on-error: true
52+
- name: Run tests
53+
run: |
54+
composer run analyse
55+
composer run lint
56+
composer run test
5857
5958
- name: Send Scrutinizer data
6059
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/coverage/
22
/composer.lock
33
/vendor/
4+
.php-cs-fixer.cache

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extensions:
5151
This will sufficient to enable Code Coverage generation by using defaults
5252
provided by the extension. This extension supports various [configuration
5353
options](#Options). For a fully annotated example configuration
54-
file check [Configuration section](#Configuration).
54+
file check [configuration section](#Configuration).
5555
5656
## Usage
5757

composer.json

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "friends-of-phpspec/phpspec-code-coverage",
3-
"type": "library",
43
"description": "Generate Code Coverage reports for PhpSpec tests",
4+
"license": "MIT",
5+
"type": "library",
56
"keywords": [
67
"phpspec",
78
"coverage",
@@ -11,8 +12,6 @@
1112
"code-coverage",
1213
"spec"
1314
],
14-
"homepage": "https://github.com/friends-of-phpspec/phpspec-code-coverage",
15-
"license": "MIT",
1615
"authors": [
1716
{
1817
"name": "ek9",
@@ -37,27 +36,29 @@
3736
"homepage": "https://github.com/jaylinski"
3837
}
3938
],
39+
"homepage": "https://github.com/friends-of-phpspec/phpspec-code-coverage",
40+
"support": {
41+
"issues": "https://github.com/friends-of-phpspec/phpspec-code-coverage/issues",
42+
"source": "https://github.com/friends-of-phpspec/phpspec-code-coverage",
43+
"docs": "https://github.com/friends-of-phpspec/phpspec-code-coverage#phpspec-code-coverage"
44+
},
4045
"require": {
4146
"php": ">= 7.3",
4247
"phpspec/phpspec": "^6.0 || ^7.0",
4348
"phpunit/php-code-coverage": "^9.0"
4449
},
50+
"require-dev": {
51+
"phpstan/phpstan": "^1.5",
52+
"friendsofphp/php-cs-fixer": "^3.4"
53+
},
4554
"conflict": {
4655
"sebastian/comparator": "< 2.0"
4756
},
48-
"require-dev": {
49-
"drupol/php-conventions": "^3.0",
50-
"vimeo/psalm": "^4.7"
51-
},
5257
"suggest": {
5358
"ext-pcov": "Install PCov extension to generate code coverage.",
5459
"ext-xdebug": "Install Xdebug to generate phpspec code coverage."
5560
},
56-
"extra": {
57-
"branch-alias": {
58-
"dev-master": "6.x-dev"
59-
}
60-
},
61+
"minimum-stability": "stable",
6162
"autoload": {
6263
"psr-4": {
6364
"FriendsOfPhpSpec\\PhpSpec\\CodeCoverage\\": "src/"
@@ -66,13 +67,14 @@
6667
"src/bootstrap.php"
6768
]
6869
},
69-
"minimum-stability": "stable",
7070
"scripts": {
71-
"grumphp": "./vendor/bin/grumphp run"
71+
"analyse": "phpstan analyse --level 8 src",
72+
"lint": "php-cs-fixer fix --dry-run src && php-cs-fixer fix --dry-run spec",
73+
"test": "phpspec run"
7274
},
73-
"support": {
74-
"issues": "https://github.com/friends-of-phpspec/phpspec-code-coverage/issues",
75-
"source": "https://github.com/friends-of-phpspec/phpspec-code-coverage",
76-
"docs": "https://github.com/friends-of-phpspec/phpspec-code-coverage#phpspec-code-coverage"
75+
"extra": {
76+
"branch-alias": {
77+
"dev-master": "6.x-dev"
78+
}
7779
}
7880
}

grumphp.yml.dist

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

psalm.xml

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

0 commit comments

Comments
 (0)