Skip to content
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

Merged
merged 2 commits into from
Jun 16, 2021
Merged

Integrate GitHub CI and bump Symfony requirement #24

merged 2 commits into from
Jun 16, 2021

Conversation

jmikola
Copy link
Owner

@jmikola jmikola commented Jun 16, 2021

Depends on #23

cc: @tachnik

@jmikola jmikola force-pushed the pr23-ci branch 2 times, most recently from ead50b4 to 8f45085 Compare June 16, 2021 02:23
@jmikola jmikola mentioned this pull request Jun 16, 2021
.github/workflows/tests.yml Outdated Show resolved Hide resolved
.github/workflows/tests.yml Outdated Show resolved Hide resolved
echo "::endgroup::"

- name: "Run PHPUnit"
run: "./vendor/bin/simple-phpunit -v"
Copy link
Contributor

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?

Copy link
Owner Author

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
Copy link
Contributor

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

Copy link
Owner Author

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.

@jmikola jmikola merged commit 6138b92 into master Jun 16, 2021
@jmikola jmikola changed the title [WIP] Integrate GitHub CI Integrate GitHub CI and bump Symfony requirement Jun 16, 2021
@jmikola jmikola mentioned this pull request Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants