Skip to content

Commit

Permalink
export SYMFONY_DEPRECATIONS_HELPER env variable as part of CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Oct 7, 2021
1 parent 1e607da commit a75e8c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ jobs:
- name: Run tests
shell: bash
run: |
make test-unit
# Required as long as "PHPUnit\Runner\DefaultTestResultCache implements the Serializable interface, which is deprecated.
# Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)" is not fixed
if [[ "${{ matrix.php-version }}" == '8.1' ]]; then
export SYMFONY_DEPRECATIONS_HELPER=max[direct]=1
else
make test-unit
fi
- name: Run integration tests
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
>

<php>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=1" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0" />
<env name="COLUMNS" value="100" force="true" />
</php>

Expand Down

0 comments on commit a75e8c4

Please sign in to comment.