diff --git a/.github/workflows/build-4.x.yml b/.github/workflows/build-4.x.yml index 9791f621..dfcbf1ce 100644 --- a/.github/workflows/build-4.x.yml +++ b/.github/workflows/build-4.x.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: ["8.0", "8.1", "8.2"] + php-versions: ["8.1", "8.2", "8.3"] name: PHP ${{ matrix.php-versions }} @@ -66,7 +66,11 @@ jobs: - name: composer install run: | cd $GITHUB_WORKSPACE/build_dir - for D in */; do (cd $D; composer install) done + for D in */; do + echo "::group::composer install under $D" + (cd $D; composer install) + echo "::endgroup" + done - name: line endings run: $SCRIPT_DIR/line_endings.sh $GITHUB_WORKSPACE diff --git a/.scripts/tester b/.scripts/tester index 512f19d9..6b20298e 100755 --- a/.scripts/tester +++ b/.scripts/tester @@ -1,13 +1,25 @@ -#!/bin/sh +#!/bin/bash export SYMFONY_DEPRECATIONS_HELPER=disabled FAIL=0 +FAILED=() for D in */; do - cd $D - echo "Operating on $D" + echo "::group::Testing $D" + cd $D composer test if [ $? -ne 0 ]; then FAIL=1 + FAILED+=($D) fi - cd .. + cd .. + echo "::endgroup" done + +echo "::group::Summary" +if [ ${#FAILED[@]} -gt 0 ] ; then + echo "Failed tests: ${FAILED[@]}" +else + echo "All tests passed!" +fi +echo "::endgroup" + exit $FAIL diff --git a/Homarus/composer.json b/Homarus/composer.json index b7d42870..ce3b9c93 100644 --- a/Homarus/composer.json +++ b/Homarus/composer.json @@ -64,6 +64,7 @@ ], "test": [ "@check", + "@putenv SYMFONY_PHPUNIT_REQUIRE=\"nikic/php-parser:^4.13\"", "bin/phpunit" ] },