Calculator
To run the project easily, we should have docker installed locally.
docker build -t 7shifts .
This endpoint is ready to test the application online where INPUT_TO_TEST is the input we want to test.
https://shifts-test.herokuapp.com/?q=INPUT_TO_TEST
Once the image gets built, run the following command where INPUT_TO_TEST is going to be any input to sum.
docker run -it --rm --name 7shifts-test 7shifts php index.php INPUT_TO_TEST
e.g
docker run -it --rm --name 7shifts-test 7shifts php index.php '//@\n2@3@8'
docker run -it --rm --name 7shifts-test 7shifts vendor/bin/phpunit tests --debug
The code was integrated with Github actions in case of needing only build, at this time the build process just run the test suite.
To know more about the latest builds go to [https://github.com/v6xsqRPztZPZ5nqZ/7Shifts/actions]