This Repository is a collection of useful reusable GitLab-Ci Step-Templates. No need to add the same CI-Steps into your projects over and over again. Simply use the GitLab Include Feature and the steps that you think are necessary for your specific project.
Use the following snippet to add xml linting to your project:
stages:
- lint
include:
- remote: 'https://raw.githubusercontent.com/run-as-root/gitlab-pipeline-templates/master/linter/xml.yaml'
Initially the steps were created for Laravel and Magento 2 Projects, so most of the default values in the VARIABLES
are preconfigured for either Laravel or Magento 2.
It will be necessary for some cases to configure the step with variables.
The following example shows how you can configure the Smoke Test made with Cigar:
variables:
SMOKE_TEST_BASE_URL: "https://example.com/overwritten"
stages:
- post-deploy
include:
- remote: 'https://raw.githubusercontent.com/run-as-root/gitlab-pipeline-templates/master/test/smoke.yaml'
All the steps that are included in this repository are supposed to be plug and play steps, so no additional config should be required. Of course, some checks do more than you might want. If so, you can configure them via environment variables.
This step is a static test to find all missing dependency declarations in the composer.json
and module.xml
files of your code.
include:
- remote: 'https://raw.githubusercontent.com/run-as-root/gitlab-pipeline-templates/master/magento2/integrity-checker.yml'
This step is a deployment step that creates release and deployment in Sentry service and sends release's commits information.
include:
- remote: 'https://raw.githubusercontent.com/run-as-root/gitlab-pipeline-templates/master/deployment/sentry.yml'