Serving resized S3 images on the fly
#4 GitHub actions continuous integration
Let’s enforce code quality on each Git push
If you didn’t notice — this is part of a series
Setting up GitHub actions
This was was really quick. Only one file was required in the repository in order to start executing GitHub actions. To start a workflow, all is needed is a yml
configuration file in the .github/workflows
directory of the repository.
I pushed the .github/workflows/php.yml
config file with the following content:
Basically it’s a standard PHP-Composer GitHub actions template. I had to slightly modify the content in order to execute the pipeline inside the app/
directory where the Symfony application is located.
This actions runs:
- when the code is pushed to the
main
branch - a pull request to the
main
branch is created