Skip to content

Enhancement: Run tests on GitHub Actions #1

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

Merged
merged 1 commit into from
Jul 3, 2022

Conversation

localheinz
Copy link

This pull request

  • runs tests on GitHub Actions

Comment on lines 37 to 39
run: "php tests/run-tests.php"
env:
NO_INTERACTION: "true"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add some useful arguments. First -q is equivalent to setting NO_INTERACTION. Then, at least in the long run, parallel test execution makes sense (-j2 or maybe -j3 seem to be good for GH actions, currently). And --show-diff is helpful to diagnose failing tests.

We could also create a junit.out.xml by setting the environment variable TEST_PHP_JUNIT to the desired filename, and then packing the file for download. Might be overkill for now, though.

@cmb69
Copy link
Owner

cmb69 commented Jul 3, 2022

Thanks for the PR!

@localheinz localheinz force-pushed the feature/tests branch 3 times, most recently from beea674 to 4868d8d Compare July 3, 2022 13:48
strategy:
matrix:
php-version:
- "7.2"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using PHP 7.2 here as laid out in README.md.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, let's go with PHP 7.2 then (although I'm not sure which version actually runs on php.net).

@cmb69 cmb69 merged commit b50bd02 into cmb69:cmb/tests Jul 3, 2022
@localheinz
Copy link
Author

Thank you, @cmb69!

@localheinz localheinz deleted the feature/tests branch July 11, 2022 17:20
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.

2 participants