Skip to content

Commit 25d33b0

Browse files
committed
Plain package update
In test/development mode, don't flood the console with queries. Update mariaDb version to match production. In the devbox, we want deprecations to fail the pipeline. In Github, we don't want that, as dependabot updates or small package udates should not cause the build to fail. We will handle the deprecations once a developer works on the project. Add a separate deprecation.log in development mode.
1 parent 7c62ee0 commit 25d33b0

9 files changed

Lines changed: 1195 additions & 945 deletions

File tree

.github/workflows/test-integration.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ jobs:
2222
run: composer install
2323

2424
- name: Run QA tests
25-
run: composer check
25+
run: composer check-ci
26+
env:
27+
SYMFONY_DEPRECATIONS_HELPER: 999999

ci/qa/phplint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
path: [./src, ./tests]
22
jobs: 10
3-
cache: /var/qa/phplint.cache
3+
cache-dir: var/cache/qa/phpla int.cache
44
extensions:
55
- php
66
exclude:

ci/qa/phpunit-ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

ci/qa/phpunit.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="../../tests/bootstrap.php">
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
6+
backupGlobals="false"
7+
colors="true"
8+
bootstrap="../../tests/bootstrap.php"
9+
cacheDirectory="../../var/qa/phpunit.cache"
10+
>
411
<coverage processUncoveredFiles="true">
512
<include>
613
<directory suffix="Test.php">../../src</directory>
@@ -12,7 +19,6 @@
1219
<server name="APP_ENV" value="test" force="true"/>
1320
<server name="SHELL_VERBOSITY" value="-1"/>
1421
<server name="KERNEL_CLASS" value="\Surfnet\StepupMiddleware\Kernel"/>
15-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="999999"/>
1622
<env name="APP_ENV" value="test" force="true"/>
1723
</php>
1824
<testsuites>

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"phpstan/phpstan-mockery": "^1.1.3",
6969
"phpstan/phpstan-symfony": "^1.4.13",
7070
"phpunit/phpunit": "^9.6.22",
71-
"rector/rector": "^1.2.10",
71+
"rector/rector": "^1.2",
7272
"sebastian/phpcpd": "^6.0.3",
7373
"squizlabs/php_codesniffer": "^3.11.3",
7474
"symfony/browser-kit": "6.4.*",
@@ -82,6 +82,10 @@
8282
"assets:install %PUBLIC_DIR%": "symfony-cmd"
8383
},
8484
"check": [
85+
"@check-ci",
86+
"composer audit"
87+
],
88+
"check-ci": [
8589
"@phplint",
8690
"@phpmd",
8791
"@phpcs",

0 commit comments

Comments
 (0)