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

Add phar integration tests #241

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Sep 15, 2023

Over the last days, we have fixed a number of checks to work ok when using the moodle-plugin-ci.phar alternative.

Obviously, that's not covered with unit tests, so we need to add some integration tests, similar to the bin/moodle-plugin-ci ones, but using the PHAR instead.

Here they are, we test them once for each PHP version supported, that should be enough.

Plus, we make the PHAR available as artifact in the GHA runs so people can download them from there (normally we only rebuild the PHAR for releases).

Ciao :-)

Note that box requires php81 to work, no matter
of that the generated packages can be executed
with older PHP versions.
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Merging #241 (67f9e7f) into master (4e06058) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #241   +/-   ##
=========================================
  Coverage     84.62%   84.62%           
  Complexity      694      694           
=========================================
  Files            74       74           
  Lines          2140     2140           
=========================================
  Hits           1811     1811           
  Misses          329      329           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@stronk7 stronk7 force-pushed the add_phar_integration_tests branch from dcfea34 to 6bb6432 Compare September 15, 2023 19:29
It's enough to run the tests once per supported PHP version.

Also, update the CHANGELOG to share about these new tests.

Closes moodlehq#71
@stronk7 stronk7 force-pushed the add_phar_integration_tests branch from 6bb6432 to 67f9e7f Compare September 18, 2023 11:56
Copy link
Member

@kabalin kabalin left a comment

Choose a reason for hiding this comment

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

Thanks @stronk7. Greeting from MoodleMoot!

@stronk7
Copy link
Member Author

stronk7 commented Sep 18, 2023

Greeting from MoodleMoot!

🧡 🧡 🧡

@stronk7 stronk7 merged commit 61b56f0 into moodlehq:master Sep 18, 2023
18 checks passed
@stronk7 stronk7 deleted the add_phar_integration_tests branch September 18, 2023 12:26
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