Skip to content

Commit

Permalink
add psalm-baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
nikow13 committed Feb 3, 2025
1 parent 1117755 commit d9f8266
Show file tree
Hide file tree
Showing 5 changed files with 370 additions and 13 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
fail-fast: false
matrix:
php-versions: [ '8.2', '8.3', '8.4']
coverage-driver: [ 'pcov' ]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -50,6 +51,12 @@ jobs:
- name: Test
run: ./bin/phpunit -d memory_limit=-1 --coverage-clover clover.xml

- name: Upload coverage to Codecov
if: ${{ matrix.php-versions == '8.4' }}
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

phar:
runs-on: ubuntu-latest
needs: build
Expand Down Expand Up @@ -88,7 +95,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.3', '8.4' ]
php-versions: [ '8.2', '8.3', '8.4' ]

steps:
- name: Install PHP
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/vendor/
.phpunit.result.cache
.phpunit.cache
.idea
.php_cs.cache
.php-cs-fixer.cache
Expand Down
18 changes: 7 additions & 11 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
verbose="true">

cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>
</phpunit>
Loading

0 comments on commit d9f8266

Please sign in to comment.