Skip to content

Commit 13145d9

Browse files
committed
coverage is no longer working, drop that build
1 parent a626308 commit 13145d9

File tree

5 files changed

+25
-29
lines changed

5 files changed

+25
-29
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,22 @@ jobs:
4848
- name: Execute tests
4949
run: composer test
5050

51-
coverage:
52-
name: Code coverage and static analysis
53-
runs-on: ubuntu-latest
51+
static:
52+
name: Static analysis
53+
runs-on: ubuntu-latest
5454

55-
steps:
56-
- name: Checkout code
57-
uses: actions/checkout@v2
55+
steps:
56+
- name: Checkout code
57+
uses: actions/checkout@v2
5858

59-
- name: Setup PHP
60-
uses: shivammathur/setup-php@v2
61-
with:
62-
php-version: 8.0
63-
coverage: xdebug
59+
- name: Setup PHP
60+
uses: shivammathur/setup-php@v2
61+
with:
62+
php-version: 8.2
63+
coverage: none
6464

65-
- name: Install dependencies
66-
run: composer update --prefer-dist --no-interaction --no-progress
67-
68-
- name: Execute tests
69-
run: composer test-ci
65+
- name: Install dependencies
66+
run: composer update --prefer-dist --no-interaction --no-progress
7067

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
68+
- name: Execute tests
69+
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +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-
]
37+
"test-static": "vendor/bin/phpstan"
4138
},
4239
"extra": {
4340
"branch-alias": {

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)