GitLab CI basics
📖 Scenario: You are working on a small project and want to automate testing using GitLab CI. You will create a simple GitLab CI configuration file to run a test job automatically when you push code.
🎯 Goal: Build a basic .gitlab-ci.yml file that defines a job named test which runs a simple shell command echo "Running tests...".
📋 What You'll Learn
Create a
.gitlab-ci.yml file with a job named testThe
test job must run the command echo "Running tests..."Use the
script keyword to define the commandEnsure the job runs in the
test stage💡 Why This Matters
🌍 Real World
GitLab CI is used to automate testing and deployment in software projects, saving time and reducing errors.
💼 Career
Understanding GitLab CI basics is essential for DevOps roles and developers working with continuous integration pipelines.
Progress0 / 4 steps