Skip to content

Commit

Permalink
ci: Fail tests on deprecation notices
Browse files Browse the repository at this point in the history
  • Loading branch information
cmfcmf committed Feb 19, 2022
1 parent 5a72a59 commit 5a620de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
phpunit-versions: '8.5.15'
experimental: false
- php-versions: '8.1'
phpunit-versions: '9.5.11'
phpunit-versions: '9.5.14'
experimental: false

# PHPUnit's dependencies do not support PHP 8.2 yet.
Expand All @@ -42,6 +42,8 @@ jobs:
php-version: ${{ matrix.php-versions }}
tools: composer, phpunit:${{ matrix.phpunit-versions }}
coverage: xdebug
# Report deprecation errors.
ini-values: error_reporting=E_ALL

- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
convertDeprecationsToExceptions="true"
processIsolation="false">

<testsuites>
Expand Down

0 comments on commit 5a620de

Please sign in to comment.