Skip to content

Commit a0b33d3

Browse files
authored
Update build for improved debugability. (#184)
* Update build-4.x.yml * Update tester * Update composer.json PHP 8.0 is no longer supported Require the same version as installed by the main project, similar to nikic/PHP-Parser#1031 (comment)
1 parent 64cb4ce commit a0b33d3

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

.github/workflows/build-4.x.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
php-versions: ["8.0", "8.1", "8.2"]
24+
php-versions: ["8.1", "8.2", "8.3"]
2525

2626
name: PHP ${{ matrix.php-versions }}
2727

@@ -66,7 +66,11 @@ jobs:
6666
- name: composer install
6767
run: |
6868
cd $GITHUB_WORKSPACE/build_dir
69-
for D in */; do (cd $D; composer install) done
69+
for D in */; do
70+
echo "::group::composer install under $D"
71+
(cd $D; composer install)
72+
echo "::endgroup"
73+
done
7074
7175
- name: line endings
7276
run: $SCRIPT_DIR/line_endings.sh $GITHUB_WORKSPACE

.scripts/tester

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
export SYMFONY_DEPRECATIONS_HELPER=disabled
33
FAIL=0
4+
FAILED=()
45
for D in */; do
5-
cd $D
6-
echo "Operating on $D"
6+
echo "::group::Testing $D"
7+
cd $D
78
composer test
89
if [ $? -ne 0 ]; then
910
FAIL=1
11+
FAILED+=($D)
1012
fi
11-
cd ..
13+
cd ..
14+
echo "::endgroup"
1215
done
16+
17+
echo "::group::Summary"
18+
if [ ${#FAILED[@]} -gt 0 ] ; then
19+
echo "Failed tests: ${FAILED[@]}"
20+
else
21+
echo "All tests passed!"
22+
fi
23+
echo "::endgroup"
24+
1325
exit $FAIL

Homarus/composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
],
6565
"test": [
6666
"@check",
67+
"@putenv SYMFONY_PHPUNIT_REQUIRE=\"nikic/php-parser:^4.13\"",
6768
"bin/phpunit"
6869
]
6970
},

0 commit comments

Comments
 (0)