-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate GitHub CI and bump Symfony requirement #24
Conversation
ead50b4
to
8f45085
Compare
echo "::endgroup::" | ||
|
||
- name: "Run PHPUnit" | ||
run: "./vendor/bin/simple-phpunit -v" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the verbose flag used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was out of habit, as we use this in mongo-php-library. It doesn't add much to the output for a successful build (just PHP runtime and PHPUnit config file IIRC), but the output is more helpful when a test actually fails.
composer update --no-interaction --no-progress ${{ matrix.composer-args }} | ||
echo "::endgroup::" | ||
echo "::group::install phpunit" | ||
./vendor/bin/simple-phpunit install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this line does anything.
This is the result I'm getting in my dev:
./vendor/bin/simple-phpunit -v install; echo $?"
PHPUnit 9.4.4 by Sebastian Bergmann and contributors.
Cannot open file "install".
0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHPUnit will installed lazily whenever this script is invoked. For CI purposes, it's preferable to do this during a setup stage instead of the actual test stage.
You'd have to parse through simple-phpunit.php
to make sense of this, but "install" is specially ignored by the script so that you can invoke this once without running any tests. It cannot be mixed with other PHPUnit command line args/options, such as -v
.
Depends on #23
cc: @tachnik