Does this workflow correct ?
I decided to implement the CI/CD on my Laravel project.
I would like to know if this workflow is correct :
Here's a streamlined workflow from commit to deployment on the test server:
-
Develop on
add-button-feature branch.
-
Commit and push changes to GitLab (CI/CD pipeline is triggered, runs tests, linting, etc., but no deployment yet).
-
Create a Merge Request (MR) to merge
add-button-feature into the test branch.
-
Assign MR to a code reviewer.
-
Code reviewer reviews and approves the MR.
-
Code reviewer merges MR into
test branch.
-
CI/CD pipeline runs again on the
test branch, including deployment steps.
-
Deployment to test server happens after the merge, based on the pipeline configuration.
Is there something missing ?
Thanks
Hello! Your workflow looks solid and aligns well with common CI/CD practices. However, here are a few additional points to consider:
Pipeline Stages
- Build ; compile your assets
- Test ; run all the tests
- Lint ; check your code quality with phpstan (I always use larastan with laravel)
- Deploy ; automate the deploy
@godzilaravel that is my idea:
- Feature Branch Development
- Commit and Push with CI/CD Trigger
- Merge Request Workflow
- Pipeline on test Branch
- Deployment to Test Server
Please or to participate in this conversation.