Skip to content

Commit d9f6bc0

Browse files
authored
Merge pull request #17 from php-http/drop-coverage
coverage is no longer working, drop that build
2 parents a626308 + 5fd8b28 commit d9f6bc0

File tree

5 files changed

+20
-25
lines changed

5 files changed

+20
-25
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: tests
22

33
on:
4-
push:
54
pull_request:
5+
push:
6+
branches:
7+
- '[0-9]+.x'
8+
- '[0-9]+.[0-9]+'
9+
- '[0-9]+.[0-9]+.x'
610

711
jobs:
812
latest:
@@ -48,8 +52,8 @@ jobs:
4852
- name: Execute tests
4953
run: composer test
5054

51-
coverage:
52-
name: Code coverage and static analysis
55+
static:
56+
name: Static analysis
5357
runs-on: ubuntu-latest
5458

5559
steps:
@@ -59,16 +63,11 @@ jobs:
5963
- name: Setup PHP
6064
uses: shivammathur/setup-php@v2
6165
with:
62-
php-version: 8.0
63-
coverage: xdebug
66+
php-version: 8.2
67+
coverage: none
6468

6569
- name: Install dependencies
6670
run: composer update --prefer-dist --no-interaction --no-progress
6771

6872
- name: Execute tests
69-
run: composer test-ci
70-
71-
- name: Upload coverage
72-
run: |
73-
wget https://scrutinizer-ci.com/ocular.phar
74-
php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml
73+
run: composer test-static

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ $replay = new ReplayPlugin($namingStrategy, $recorder);
4141

4242
``` bash
4343
$ composer test
44+
$ composer test-static
4445
```
4546

4647

composer.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,7 @@
3434
},
3535
"scripts": {
3636
"test": "vendor/bin/simple-phpunit",
37-
"test-ci": [
38-
"vendor/bin/simple-phpunit --coverage-text --coverage-clover=build/coverage.xml",
39-
"vendor/bin/phpstan analyse src -l 8"
40-
]
41-
},
42-
"extra": {
43-
"branch-alias": {
44-
"dev-master": "1.0-dev"
45-
}
37+
"test-static": "vendor/bin/phpstan"
4638
},
4739
"prefer-stable": true,
4840
"minimum-stability": "dev"

phpstan.neon

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

phpstan.neon.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parameters:
2+
level: 8
3+
paths:
4+
- src/
5+
ignoreErrors:
6+
# The logger is initialized to NullLogger in the constructor of the FilesystemRecorder, but phpstan does not see that
7+
- message: '#Cannot call method debug\(\) on Psr\\Log\\LoggerInterface\|null#'
8+
path: src/Recorder/FilesystemRecorder.php

0 commit comments

Comments
 (0)