Skip to content

Conversation

@jefflembeck
Copy link
Contributor

@jefflembeck jefflembeck commented Oct 14, 2021

This adds phpunit, which runs on pushes to a branch. It involves installing composer, which is not necessary for deployment, but useful for running tests locally.

AB#141090

Composer is a package manager for php (similar to npm for JavaScript or
bundler for Ruby, etc.). We can use it to make sure we install the
appropriate dependencies for our project. In this case, I'd like to
install phpunit.

Since this is a developer dependency, this will not break deployments as
they stand, as these files are not required for the application to run,
just for the tests to run
Also add a `composer test` script to make things easier
Need to include proper php version along with the gd extension (for
imagecreatefrompng). Also make sure there's an absolute path being
passed to imagecreatefrompng.
@jefflembeck jefflembeck merged commit 8fdba23 into master Oct 14, 2021
@jefflembeck jefflembeck deleted the test-test-1-2 branch October 14, 2021 21:55
@rik
Copy link
Contributor

rik commented Oct 14, 2021

Oh boy, automated tests! ❤️

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.

4 participants