CI/CD Pipelines
You write the tests. This page shows how a CI/CD pipeline runs them for the whole team. It explains continuous integration, continuous delivery, and continuous deployment, and the parts of a pipeline in GitHub Actions and Jenkins. Then you put a Playwright test suite into a pipeline, and use it as a gate, a schedule, and a record.
14 min read14 মিনিটে পড়া যায় · 7 sections7টি সেকশন · 17 sources17টি সোর্স · updated Nov 2026আপডেট: Nov 2026
One push, parallel jobs, one verdictএকটা push, সমান্তরাল জব, একটা রায়
Push a commit and watch jobs fan out to runners, a matrix multiply them, and one failure block the pull request.একটা commit push করুন আর দেখুন জবগুলো runner-এ ছড়ায়, matrix সেগুলো বাড়ায়, আর একটা ব্যর্থতা pull request আটকে দেয়।
You’ll learnআপনি শিখবেন
- What a push, a workflow and a runner dopush, workflow আর runner কী করে
- Why jobs run in parallel and wall time is the longest jobজব কেন একসাথে চলে, আর ঘড়ির সময় কেন সবচেয়ে লম্বা জব
- How needs makes a job waitneeds কীভাবে জবকে অপেক্ষা করায়
- How a matrix multiplies jobsmatrix কীভাবে জব বাড়ায়
- How one red job blocks the mergeএকটা লাল জব কীভাবে merge আটকায়
What it is
Continuous integration (CI) is a software practice that requires frequently committing code to a shared repository Source 3সোর্স 3. Each commit can be built and tested, to make sure that it doesn't introduce errors Source 3সোর্স 3. The tests can include code linters, security checks, code coverage, functional tests, and other custom checks Source 3সোর্স 3.
Continuous delivery expands upon CI. Every code change is built, tested, and then pushed to a non-production testing or staging environment Source 4সোর্স 4. Done well, the team always has a deployment-ready build artifact that has passed through a standardized test process Source 4সোর্স 4.
Continuous deployment differs from continuous delivery in one thing. The difference is a manual approval to update production: with continuous deployment, production happens automatically, without explicit approval Source 4সোর্স 4.
| Practice | What happens to each change | Release to production |
|---|---|---|
| Continuous integration | Committed often, then built and tested Source 3সোর্স 3 | — |
| Continuous delivery | Also pushed to a testing or staging environment Source 4সোর্স 4 | After a manual approval Source 4সোর্স 4 |
| Continuous deployment | Also pushed to a testing or staging environment Source 4সোর্স 4 | Automatic, with no approval Source 4সোর্স 4 |
A pipeline is this process as automation. Jenkins describes a continuous delivery pipeline as "an automated expression of your process for getting software from version control right through to your users and customers" Source 5সোর্স 5. Two common tools run pipelines:
- Jenkins is a self-contained, open source automation server for tasks related to building, testing, and delivering or deploying software Source 1সোর্স 1.
- GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that lets you automate your build, test, and deployment pipeline Source 2সোর্স 2.
সহজ English
Continuous integration (CI) means that developers commit code often to a shared repository Source 3সোর্স 3. Each commit can be built and tested, to check that it adds no errors Source 3সোর্স 3. The checks can be code linters, security checks, code coverage, functional tests, and other checks Source 3সোর্স 3.
Continuous delivery goes further than CI. Every change is built and tested. Then it goes to a testing or staging environment, not to production Source 4সোর্স 4. Done well, the team always has a build that is ready to deploy and that passed the standard tests Source 4সোর্স 4.
Continuous deployment differs from continuous delivery in one thing. In continuous delivery, a person approves the update to production. In continuous deployment, production updates happen automatically, with no approval Source 4সোর্স 4.
| Practice | What happens to each change | Release to production |
|---|---|---|
| Continuous integration | Committed often, then built and tested Source 3সোর্স 3 | — |
| Continuous delivery | Also sent to a testing or staging environment Source 4সোর্স 4 | After a person approves Source 4সোর্স 4 |
| Continuous deployment | Also sent to a testing or staging environment Source 4সোর্স 4 | Automatic, no approval Source 4সোর্স 4 |
A pipeline is this process done by automation. Jenkins says a continuous delivery pipeline is "an automated expression of your process for getting software from version control right through to your users and customers" Source 5সোর্স 5. Two common tools run pipelines:
- Jenkins is an open source automation server. It automates tasks for building, testing, and delivering or deploying software Source 1সোর্স 1.
- GitHub Actions is a CI/CD platform. It automates your build, test, and deployment pipeline Source 2সোর্স 2.
বাংলা ব্যাখ্যা
Continuous integration (CI) হলো একটা software practice, যেখানে একটা shared repository-তে ঘন ঘন code commit করতে হয় Source 3সোর্স 3। প্রতিটা commit build আর test করা যায়, যাতে নিশ্চিত হওয়া যায় যে সেটা কোনো error আনেনি Source 3সোর্স 3। এই test-এ থাকতে পারে code linter, security check, code coverage, functional test আর অন্য custom check Source 3সোর্স 3।
Continuous delivery CI-কে আরও এগিয়ে নেয়। প্রতিটা code change build হয়, test হয়, তারপর একটা non-production testing বা staging environment-এ যায় Source 4সোর্স 4। ঠিকভাবে করলে টিমের হাতে সবসময় একটা deploy করার মতো build artifact থাকে, যেটা একটা standard test process পার হয়ে এসেছে Source 4সোর্স 4।
Continuous deployment continuous delivery থেকে একটা জায়গায় আলাদা। continuous delivery-তে production-এ update দেওয়ার আগে একজন মানুষ approve করেন। continuous deployment-এ production update নিজে নিজেই হয়, কোনো approval ছাড়া Source 4সোর্স 4।
| Practice | প্রতিটা change-এর কী হয় | Production-এ release |
|---|---|---|
| Continuous integration | ঘন ঘন commit, তারপর build আর test Source 3সোর্স 3 | — |
| Continuous delivery | testing বা staging environment-এও যায় Source 4সোর্স 4 | একজন মানুষ approve করার পর Source 4সোর্স 4 |
| Continuous deployment | testing বা staging environment-এও যায় Source 4সোর্স 4 | নিজে নিজেই, approval ছাড়া Source 4সোর্স 4 |
Pipeline হলো এই পুরো process-এর automation। Jenkins-এর ভাষায়, continuous delivery pipeline হলো "an automated expression of your process for getting software from version control right through to your users and customers" Source 5সোর্স 5, মানে version control থেকে user পর্যন্ত software পৌঁছানোর process-এর automated রূপ। দুটো পরিচিত tool pipeline চালায়:
- Jenkins একটা self-contained, open source automation server। software build, test আর delivery বা deployment-এর কাজ automate করতে এটা ব্যবহার হয় Source 1সোর্স 1।
- GitHub Actions একটা CI/CD platform। এটা আপনার build, test আর deployment pipeline automate করতে দেয় Source 2সোর্স 2।
How it works
A GitHub Actions pipeline has these parts Source 2সোর্স 2:
| Part | What it is |
|---|---|
| Workflow | A configurable automated process that runs one or more jobs. It is a YAML file in the .github/workflows directory of the repository. |
| Event | A specific activity in a repository that triggers a workflow run, such as a pushed commit or a new pull request. A workflow can also run on a schedule, through the REST API, or manually. |
| Job | A set of steps that runs on the same runner. |
| Step | A shell script or an action. Steps are executed in order and depend on each other. |
| Action | A pre-defined, reusable set of jobs or code that performs a specific task. |
| Runner | A server that runs your workflows. Each runner can run a single job at a time. |
An example with two jobs. The file name and the job names are made up:
push or pull request (the event)
|
v
.github/workflows/tests.yml (the workflow)
|
+--> job "unit" on a runner: step -> step -> step
|
+--> job "e2e" on a runner: step -> step -> step
|
v
the result of the tests, shown in the pull requestBy default, jobs have no dependencies and run in parallel Source 2সোর্স 2. A job that depends on another job waits for that job to complete Source 2সোর্স 2. A matrix runs the same job several times, each with a different combination of variables, like operating systems or language versions Source 2সোর্স 2.
GitHub provides Ubuntu Linux, Microsoft Windows, and macOS runners, and each workflow run executes in a fresh, newly-provisioned virtual machine Source 2সোর্স 2. GitHub runs your CI tests and shows the results of each test in the pull request Source 3সোর্স 3. When all CI tests in a workflow pass, the change is ready to be reviewed or merged Source 3সোর্স 3.
Jenkins uses other names for the same ideas. A Jenkins Pipeline is written in a text file called a Jenkinsfile, which can be committed to the project's source control repository Source 5সোর্স 5. A stage is a distinct subset of tasks, such as "Build", "Test", and "Deploy" Source 5সোর্স 5. A step is a single task, such as sh 'make' to run a shell command Source 5সোর্স 5. A node is a machine of the Jenkins environment that can execute a Pipeline Source 5সোর্স 5. This is a basic three-stage pipeline in the Declarative syntax Source 6সোর্স 6:
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}সহজ English
A GitHub Actions pipeline has these parts Source 2সোর্স 2:
| Part | What it is |
|---|---|
| Workflow | An automated process that runs one or more jobs. It is a YAML file in the .github/workflows folder of the repository. |
| Event | Something that happens in the repository and starts the workflow, such as a push or a new pull request. A workflow can also run on a schedule, through the REST API, or by hand. |
| Job | A group of steps that run on the same machine. |
| Step | One shell script or one action. Steps run in order and depend on each other. |
| Action | A ready-made, reusable piece that does one task. |
| Runner | The server that runs the workflow. It runs one job at a time. |
An example with two jobs. The file name and the job names are made up:
push or pull request (the event)
|
v
.github/workflows/tests.yml (the workflow)
|
+--> job "unit" on a runner: step -> step -> step
|
+--> job "e2e" on a runner: step -> step -> step
|
v
the result of the tests, shown in the pull requestJobs run at the same time by default Source 2সোর্স 2. If a job depends on another job, it waits for that job to finish Source 2সোর্স 2. A matrix runs the same job several times, for example on different operating systems or language versions Source 2সোর্স 2.
GitHub gives you Ubuntu Linux, Windows, and macOS runners. Each run starts on a fresh virtual machine Source 2সোর্স 2. GitHub shows the result of each test in the pull request Source 3সোর্স 3. When all CI tests pass, the change is ready for review or merge Source 3সোর্স 3.
Jenkins uses other names for the same ideas. You write the pipeline in a text file called a Jenkinsfile, and you can commit it to the project's repository Source 5সোর্স 5. A stage is a group of tasks, such as "Build", "Test", and "Deploy" Source 5সোর্স 5. A step is one task, such as sh 'make' to run a shell command Source 5সোর্স 5. A node is a machine in Jenkins that can run a pipeline Source 5সোর্স 5. Here is a basic pipeline with three stages Source 6সোর্স 6:
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}বাংলা ব্যাখ্যা
একটা GitHub Actions pipeline-এর অংশগুলো Source 2সোর্স 2:
| অংশ | এটা কী |
|---|---|
| Workflow | একটা automated process, যেটা এক বা একাধিক job চালায়। এটা repository-র .github/workflows ফোল্ডারে রাখা একটা YAML ফাইল। |
| Event | repository-তে ঘটা একটা নির্দিষ্ট কাজ, যেটা workflow চালু করে, যেমন একটা push বা নতুন pull request। schedule ধরে, REST API দিয়ে বা হাতে চালিয়েও workflow চালানো যায়। |
| Job | কয়েকটা step-এর একটা দল, যেগুলো একই runner-এ চলে। |
| Step | একটা shell script বা একটা action। step-গুলো ক্রমানুসারে চলে আর একটা আরেকটার ওপর নির্ভর করে। |
| Action | আগে থেকে বানানো, বারবার ব্যবহার করা যায় এমন একটা অংশ, যেটা একটা নির্দিষ্ট কাজ করে। |
| Runner | যে server workflow চালায়। একটা runner একসাথে একটাই job চালায়। |
দুটো job-সহ একটা উদাহরণ। ফাইলের নাম আর job-এর নাম বানানো:
push or pull request (the event)
|
v
.github/workflows/tests.yml (the workflow)
|
+--> job "unit" on a runner: step -> step -> step
|
+--> job "e2e" on a runner: step -> step -> step
|
v
the result of the tests, shown in the pull requestdefault-ভাবে job-গুলোর একটার ওপর আরেকটা নির্ভর করে না, তাই সেগুলো একসাথে (parallel) চলে Source 2সোর্স 2। একটা job অন্য job-এর ওপর নির্ভর করলে সেটা শেষ হওয়া পর্যন্ত অপেক্ষা করে Source 2সোর্স 2। matrix একই job কয়েকবার চালায়, প্রতিবার আলাদা variable নিয়ে, যেমন আলাদা operating system বা language version Source 2সোর্স 2।
GitHub Ubuntu Linux, Microsoft Windows আর macOS runner দেয়। প্রতিটা workflow run একটা নতুন, fresh virtual machine-এ চলে Source 2সোর্স 2। GitHub আপনার CI test চালায়, আর প্রতিটা test-এর ফল pull request-এ দেখায় Source 3সোর্স 3। workflow-এর সব CI test পাস করলে change-টা review বা merge করার জন্য তৈরি Source 3সোর্স 3।
Jenkins একই ধারণাগুলোকে অন্য নামে ডাকে। Jenkins Pipeline লেখা হয় Jenkinsfile নামের একটা text ফাইলে, যেটা project-এর source control repository-তে commit করা যায় Source 5সোর্স 5। stage হলো কাজের একটা আলাদা ভাগ, যেমন "Build", "Test" আর "Deploy" Source 5সোর্স 5। step হলো একটা একক কাজ, যেমন shell command চালাতে sh 'make' Source 5সোর্স 5। node হলো Jenkins environment-এর একটা machine, যেটা Pipeline চালাতে পারে Source 5সোর্স 5। Declarative syntax-এ তিন stage-এর একটা সাধারণ pipeline Source 6সোর্স 6:
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}Try it
This walk-through puts a Playwright test suite into GitHub Actions. It follows the Playwright guide Source 7সোর্স 7.
Cost
Standard GitHub-hosted runners in public repositories are free Source 10সোর্স 10. In a private repository, runner time draws from the monthly included compute usage of your plan Source 10সোর্স 10.
1. Create the project. Run the command below. When it offers to add a GitHub Actions workflow, say yes. It creates .github/workflows/playwright.yml, which runs your tests on each push and pull request into the main or master branch Source 7সোর্স 7.
npm init playwright@latest2. Read the workflow. This is the file that it creates Source 7সোর্স 7:
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v5
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30- The steps clone your repository, install Node.js, install the npm dependencies, install the Playwright browsers, run the tests, and upload the HTML report Source 7সোর্স 7.
runs-ondefines the type of machine that runs the job, by a workflow label such asubuntu-latestSource 13সোর্স 13.npm ciis the install command for automated environments such as test platforms and continuous integration Source 9সোর্স 9. It never writes topackage.jsonor the lock file Source 9সোর্স 9.if: ${{ !cancelled() }}keeps the report of a failed run. A step with no status function gets the default checksuccess(), which returns true when all previous steps have succeeded Source 8সোর্স 8.cancelled()is true if the workflow was canceled Source 8সোর্স 8. So the upload runs after failed tests too.
3. Push it. Create a repository on GitHub and push your code to it. First initialize a Git repository with git init, so that you can add, commit, and push Source 7সোর্স 7. The commands are on the Git Basics page.
4. Watch the run. Open the Actions tab to see whether your tests passed or failed Source 7সোর্স 7. Click the run, then Run Playwright tests, to see the error messages, what was expected and what was received, and the call log Source 7সোর্স 7.
5. Open the report. In the Artifacts section, click playwright-report to download the report as a zip file Source 7সোর্স 7. Extract it, then serve it with this command, because opening the file directly does not work as expected Source 7সোর্স 7:
npx playwright show-report name-of-my-extracted-playwright-reportসহজ English
Here you put a Playwright test suite into GitHub Actions. The steps follow the Playwright guide Source 7সোর্স 7.
Cost
The standard GitHub runners are free in a public repository Source 10সোর্স 10. In a private repository, the runner time comes out of the monthly amount that your plan includes Source 10সোর্স 10.
1. Create the project. Run this command. It asks if it should add a GitHub Actions workflow: say yes. It creates .github/workflows/playwright.yml. That file runs your tests on each push and pull request into main or master Source 7সোর্স 7.
npm init playwright@latest2. Read the workflow. This is the file Source 7সোর্স 7:
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v5
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30- The steps copy your repository, install Node.js, install the npm packages, install the browsers, run the tests, and upload the HTML report Source 7সোর্স 7.
runs-onpicks the type of machine for the job, by a label such asubuntu-latestSource 13সোর্স 13.npm ciis the install command for automated places such as test platforms and CI Source 9সোর্স 9. It never changespackage.jsonor the lock file Source 9সোর্স 9.if: ${{ !cancelled() }}keeps the report when tests fail. A step with no status function gets the default checksuccess(). It is true when all earlier steps passed Source 8সোর্স 8.cancelled()is true when the run was canceled Source 8সোর্স 8. So the report uploads after failed tests too.
3. Push it. Make a repository on GitHub and push your code. First run git init, so that you can add, commit, and push Source 7সোর্স 7. The Git Basics page shows the commands.
4. Watch the run. Open the Actions tab. It shows if your tests passed or failed Source 7সোর্স 7. Click the run, then Run Playwright tests. You see the error messages, the expected and the received values, and the call log Source 7সোর্স 7.
5. Open the report. Under Artifacts, click playwright-report. It downloads as a zip file Source 7সোর্স 7. Unzip it and open it with this command. Opening the file directly does not work well Source 7সোর্স 7:
npx playwright show-report name-of-my-extracted-playwright-reportবাংলা ব্যাখ্যা
এখানে আপনি একটা Playwright test suite-কে GitHub Actions-এ বসাবেন। ধাপগুলো Playwright-এর guide অনুসরণ করে Source 7সোর্স 7।
খরচ
public repository-তে standard GitHub-hosted runner বিনামূল্যে Source 10সোর্স 10। private repository-তে runner-এর সময় আপনার plan-এর মাসিক included compute usage থেকে কাটা যায় Source 10সোর্স 10।
১. project বানান। নিচের command চালান। এটা GitHub Actions workflow যোগ করতে চাইলে yes দিন। এটা .github/workflows/playwright.yml বানায়, যেটা main বা master branch-এ প্রতিটা push আর pull request-এ আপনার test চালায় Source 7সোর্স 7।
npm init playwright@latest২. workflow পড়ুন। এটাই সেই ফাইল Source 7সোর্স 7:
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v5
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30- step-গুলো আপনার repository clone করে, Node.js install করে, npm dependency install করে, Playwright browser install করে, test চালায়, আর HTML report upload করে Source 7সোর্স 7।
runs-onঠিক করে কোন ধরনের machine job চালাবে,ubuntu-latest-এর মতো একটা workflow label দিয়ে Source 13সোর্স 13।npm ciহলো test platform আর continuous integration-এর মতো automated environment-এর install command Source 9সোর্স 9। এটা কখনোpackage.jsonবা lock ফাইলে লেখে না Source 9সোর্স 9।if: ${{ !cancelled() }}ফেল হওয়া run-এর report রেখে দেয়। কোনো status function না থাকলে step-এ default checksuccess()বসে, যেটা true হয় যখন আগের সব step সফল হয়েছে Source 8সোর্স 8। workflow cancel হলেcancelled()true হয় Source 8সোর্স 8। তাই test ফেল করলেও report upload হয়।
৩. push করুন। GitHub-এ একটা repository বানিয়ে আপনার code push করুন। আগে git init দিয়ে একটা Git repository শুরু করুন, যাতে add, commit আর push করা যায় Source 7সোর্স 7। command-গুলো Git Basics পেজে আছে।
৪. run দেখুন। Actions tab খুলুন: test পাস করল না ফেল করল, সেখানে দেখা যায় Source 7সোর্স 7। run-এ ক্লিক করুন, তারপর Run Playwright tests-এ। সেখানে error message, কী আশা করা হয়েছিল আর কী পাওয়া গেছে, আর call log দেখা যায় Source 7সোর্স 7।
৫. report খুলুন। Artifacts অংশে playwright-report-এ ক্লিক করলে report একটা zip ফাইল হিসেবে download হয় Source 7সোর্স 7। unzip করে এই command দিয়ে খুলুন, কারণ ফাইলটা সরাসরি খুললে ঠিকমতো কাজ করে না Source 7সোর্স 7:
npx playwright show-report name-of-my-extracted-playwright-reportHow a tester uses it
A pipeline turns a test suite into a gate, a schedule, and a record.
A merge gate. A branch protection rule can require status checks. Then all required status checks must pass before collaborators can merge changes into the protected branch Source 11সোর্স 11. Make your test job one of them, and a red test blocks the merge.
A schedule. A slow suite, such as a full regression run, can run on a timer with the schedule event Source 12সোর্স 12. It uses POSIX cron syntax: five fields for the minute, hour, day of the month, month, and day of the week Source 12সোর্স 12. By default, scheduled workflows run in UTC, on the latest commit on the default branch, and the shortest interval is once every 5 minutes Source 12সোর্স 12. This example runs at 5:30 AM in the America/New_York timezone, Monday through Friday. Without the timezone line, it would run at 5:30 UTC Source 12সোর্স 12:
on:
schedule:
- cron: '30 5 * * 1-5'
timezone: "America/New_York"More environments. A matrix runs the same test job on several operating systems or language versions Source 2সোর্স 2.
A record. The output of building and testing often produces files that you can use to debug test failures Source 14সোর্স 14. You can use the upload-artifact action to upload them, and retention-days sets how long one artifact is kept, within the limit of the repository, organization, or enterprise Source 14সোর্স 14. In Jenkins, the junit step records JUnit XML test reports Source 6সোর্স 6. Based on the recorded reports, Jenkins can show historical trends Source 6সোর্স 6. In the handbook's example that runs sh 'make check || true', failed tests mark the Pipeline "unstable", shown as a yellow ball in the web UI Source 6সোর্স 6. A Declarative Pipeline can also record the reports in a post section with the condition always Source 6সোর্স 6:
pipeline {
agent any
stages {
stage('Test') {
steps {
sh 'make check'
}
}
}
post {
always {
junit '**/target/*.xml'
}
}
}A release gate. Continuous delivery has a manual approval before production Source 4সোর্স 4. In GitHub Actions, an environment can require approval before a job proceeds Source 17সোর্স 17. Before a release, a continuous delivery pipeline can run more than unit tests: UI testing, load testing, integration testing, and API reliability testing Source 4সোর্স 4.
Go deeper on this site: Browser Testing with Playwright, k6 in CI, and GitHub Actions for Claude Code in a workflow.
সহজ English
A pipeline turns your tests into a gate, a schedule, and a record.
A gate before merge. A branch protection rule can require status checks. Then every required check must pass before collaborators can merge into that branch Source 11সোর্স 11. Make your test job a required check, and a failed test stops the merge.
A schedule. A slow suite, like a full regression run, can run on a timer with the schedule event Source 12সোর্স 12. It uses cron syntax: five fields for the minute, the hour, the day of the month, the month, and the day of the week Source 12সোর্স 12. Scheduled runs use UTC by default. They run on the latest commit of the default branch, and at most once every 5 minutes Source 12সোর্স 12. This one runs at 5:30 AM New York time, Monday through Friday. Without the timezone line, it would run at 5:30 UTC Source 12সোর্স 12:
on:
schedule:
- cron: '30 5 * * 1-5'
timezone: "America/New_York"More environments. A matrix runs the same test job on several operating systems or language versions Source 2সোর্স 2.
A record. A build and test run often makes files that help you debug failed tests Source 14সোর্স 14. The upload-artifact action uploads them. retention-days sets how long one file set is kept, within the limit that the repository, organization, or enterprise sets Source 14সোর্স 14. In Jenkins, the junit step records JUnit XML test reports Source 6সোর্স 6. Jenkins can show trends from the saved reports Source 6সোর্স 6. In the handbook's example with sh 'make check || true', failed tests mark the run "unstable" with a yellow ball Source 6সোর্স 6. A Declarative Pipeline can also record the reports in a post section with the condition always Source 6সোর্স 6:
pipeline {
agent any
stages {
stage('Test') {
steps {
sh 'make check'
}
}
}
post {
always {
junit '**/target/*.xml'
}
}
}A gate before release. In continuous delivery, a person approves the update to production Source 4সোর্স 4. In GitHub Actions, an environment can make a job wait for approval Source 17সোর্স 17. Before a release, the pipeline can run more than unit tests: UI tests, load tests, integration tests, and API reliability tests Source 4সোর্স 4.
Read more on this site: Browser Testing with Playwright, k6 in CI, and GitHub Actions for Claude Code in a workflow.
বাংলা ব্যাখ্যা
একটা pipeline আপনার test suite-কে একটা gate, একটা schedule আর একটা রেকর্ডে পরিণত করে।
merge-এর আগে gate। একটা branch protection rule status check বাধ্যতামূলক করতে পারে। তখন protected branch-এ merge করার আগে সব required status check পাস করতে হয় Source 11সোর্স 11। আপনার test job-কে এর একটা বানান, তাহলে একটা লাল test merge আটকে দেবে।
একটা schedule। ধীর suite, যেমন পুরো regression run, schedule event দিয়ে নির্দিষ্ট সময়ে চালানো যায় Source 12সোর্স 12। এটা POSIX cron syntax ব্যবহার করে: পাঁচটা field, minute, hour, মাসের দিন, মাস আর সপ্তাহের দিন Source 12সোর্স 12। default-ভাবে scheduled workflow UTC-তে চলে, default branch-এর সর্বশেষ commit-এ চলে, আর সবচেয়ে কম ব্যবধান প্রতি ৫ মিনিটে একবার Source 12সোর্স 12। এই উদাহরণ America/New_York timezone-এ সোমবার থেকে শুক্রবার সকাল ৫:৩০-এ চলে। timezone লাইন না থাকলে এটা UTC ৫:৩০-এ চলত Source 12সোর্স 12:
on:
schedule:
- cron: '30 5 * * 1-5'
timezone: "America/New_York"আরও environment। matrix একই test job কয়েকটা operating system বা language version-এ চালায় Source 2সোর্স 2।
একটা রেকর্ড। build আর test-এর output-এ প্রায়ই এমন ফাইল থাকে, যা দিয়ে ফেল হওয়া test debug করা যায় Source 14সোর্স 14। upload-artifact action দিয়ে এগুলো upload করা যায়, আর retention-days ঠিক করে একটা artifact কতদিন থাকবে, repository, organization বা enterprise-এর সীমার মধ্যে Source 14সোর্স 14। Jenkins-এ junit step JUnit XML test report রেকর্ড করে Source 6সোর্স 6। রেকর্ড করা report থেকে Jenkins trend দেখাতে পারে Source 6সোর্স 6। handbook-এর যে উদাহরণে sh 'make check || true' চলে, সেখানে test ফেল করলে Pipeline "unstable" চিহ্নিত হয়, web UI-তে একটা হলুদ বল দিয়ে Source 6সোর্স 6। Declarative Pipeline-এ post section-এ always condition দিয়েও report রেকর্ড করা যায় Source 6সোর্স 6:
pipeline {
agent any
stages {
stage('Test') {
steps {
sh 'make check'
}
}
}
post {
always {
junit '**/target/*.xml'
}
}
}release-এর আগে gate। continuous delivery-তে production-এর আগে একটা manual approval থাকে Source 4সোর্স 4। GitHub Actions-এ একটা environment কোনো job এগোনোর আগে approval চাইতে পারে Source 17সোর্স 17। release-এর আগে continuous delivery pipeline শুধু unit test নয়, আরও চালাতে পারে: UI testing, load testing, integration testing আর API reliability testing Source 4সোর্স 4।
এই সাইটে আরও পড়ুন: Browser Testing with Playwright, k6 in CI, আর workflow-এ Claude Code-এর জন্য GitHub Actions।
Common mistakes
- The report uploads only when tests pass. A step with no status function gets the default check
success(), which returns true when all previous steps have succeeded Source 8সোর্স 8. Fix: give the upload stepif: ${{ !cancelled() }}, as the Playwright workflow does Source 7সোর্স 7. npm installin the pipeline.npm ciis meant for automated environments such as continuous integration Source 9সোর্স 9. If the dependencies in the lock file do not matchpackage.json,npm ciexits with an error instead of updating the lock file Source 9সোর্স 9. The run then fails on the real problem.- No time limit. By default, a job can run 360 minutes before GitHub cancels it Source 13সোর্স 13. Set
timeout-minuteson the job Source 13সোর্স 13. For Playwright, the guide setsglobalTimeoutin the config instead, so that the reporters still produce a report Source 7সোর্স 7. - A password in the YAML file. Store it as a secret of the organization, repository, or environment Source 15সোর্স 15. A workflow can read a secret only if it names it, and GitHub redacts secrets that are printed to the logs, but the redaction is not guaranteed Source 15সোর্স 15.
- A third-party action pinned to a tag. A tag can be moved or deleted if a bad actor gains access to the repository of the action Source 16সোর্স 16. Pin it to a full-length commit SHA Source 16সোর্স 16.
- A scheduled run that should test a branch. Scheduled workflows run on the latest commit on the default branch Source 12সোর্স 12.
- A job that never runs. If a job fails or is skipped, every job that
needsit is skipped, unless a condition lets it continue Source 13সোর্স 13.
সহজ English
- The report uploads only when tests pass. A step with no status function gets the default check
success(), which is true when every earlier step passed Source 8সোর্স 8. Fix: addif: ${{ !cancelled() }}to the upload step, as the Playwright workflow does Source 7সোর্স 7. npm installin the pipeline.npm ciis made for automated places such as CI Source 9সোর্স 9. If the lock file does not matchpackage.json,npm cistops with an error. It does not change the lock file Source 9সোর্স 9. So the run fails on the real problem.- No time limit. By default, a job can run 360 minutes before GitHub cancels it Source 13সোর্স 13. Set
timeout-minuteson the job Source 13সোর্স 13. For Playwright, the guide setsglobalTimeoutin the config instead, so that you still get a report Source 7সোর্স 7. - A password in the YAML file. Save it as a secret of the organization, repository, or environment Source 15সোর্স 15. A workflow reads a secret only if it names it. GitHub hides secrets that show up in the logs, but this is not guaranteed Source 15সোর্স 15.
- An outside action pinned to a tag. An attacker who gets into the action's repository can move or delete a tag Source 16সোর্স 16. Pin it to the full commit SHA Source 16সোর্স 16.
- A scheduled run that should test a branch. Scheduled runs use the latest commit of the default branch Source 12সোর্স 12.
- A job that never runs. If a job fails or is skipped, every job that
needsit is skipped, unless a condition lets it go on Source 13সোর্স 13.
বাংলা ব্যাখ্যা
- test পাস করলেই শুধু report upload হয়। কোনো status function না থাকলে step-এ default check
success()বসে, যেটা true হয় যখন আগের সব step সফল Source 8সোর্স 8। সমাধান: upload step-এif: ${{ !cancelled() }}দিন, যেমন Playwright workflow দেয় Source 7সোর্স 7। - pipeline-এ
npm install।npm ciবানানো হয়েছে continuous integration-এর মতো automated environment-এর জন্য Source 9সোর্স 9। lock ফাইলের dependencypackage.json-এর সাথে না মিললেnpm cilock ফাইল update না করে error দিয়ে বেরিয়ে যায় Source 9সোর্স 9। তখন run আসল সমস্যাতেই ফেল করে। - সময়ের কোনো সীমা নেই। default-ভাবে একটা job ৩৬০ মিনিট চলতে পারে, তারপর GitHub সেটা cancel করে Source 13সোর্স 13। job-এ
timeout-minutesদিন Source 13সোর্স 13। Playwright-এর জন্য guide এর বদলে config-এglobalTimeoutদেয়, যাতে reporter-রা তবুও report বানায় Source 7সোর্স 7। - YAML ফাইলে password। এটা organization, repository বা environment-এর secret হিসেবে রাখুন Source 15সোর্স 15। workflow একটা secret পড়তে পারে শুধু তখন, যখন সেটার নাম লেখা থাকে। log-এ print হওয়া secret GitHub ঢেকে দেয়, কিন্তু এটার নিশ্চয়তা নেই Source 15সোর্স 15।
- third-party action একটা tag-এ pin করা। কোনো খারাপ লোক action-এর repository-তে ঢুকতে পারলে tag সরিয়ে দিতে বা মুছে দিতে পারে Source 16সোর্স 16। পুরো commit SHA-তে pin করুন Source 16সোর্স 16।
- scheduled run দিয়ে একটা branch test করার আশা। scheduled workflow চলে default branch-এর সর্বশেষ commit-এ Source 12সোর্স 12।
- একটা job কখনো চলে না। একটা job ফেল বা skip হলে যে job-গুলো সেটাকে
needsকরে, সেগুলোও skip হয়, যদি না কোনো condition চালিয়ে যেতে দেয় Source 13সোর্স 13।
What a tester can check
Tutorial advice
This list is the tutorial's own advice for a team that has a pipeline.
- Open three recent pull requests. Check that the tests ran on each one, and that a failed test blocked the merge.
- Break one test on a branch on purpose. Check that the run turns red, and that you can reach the failed test, its log, and the report in two or three clicks.
- Ask which suites run only on a schedule, and who reads their result the next morning.
- Ask how the team handles a flaky test: a tracked ticket, or a re-run until it passes.
- Check that each test job has a time limit, and that the report uploads when the tests fail.
- Search the workflow files for passwords, tokens, and URLs with keys in them.
- Compare the versions in the matrix with the versions that your users run.
সহজ English
Tutorial advice
This list is the tutorial's own advice for a team that has a pipeline.
- Open three recent pull requests. Check that the tests ran on each one, and that a failed test stopped the merge.
- Break one test on a branch on purpose. Check that the run turns red. Check that you reach the failed test, its log, and the report in two or three clicks.
- Ask which test suites run only on a schedule, and who reads the result the next morning.
- Ask what the team does with a flaky test: a ticket, or a re-run until it passes.
- Check that each test job has a time limit, and that the report uploads when tests fail.
- Search the workflow files for passwords, tokens, and links with keys in them.
- Compare the versions in the matrix with the versions that your users have.
বাংলা ব্যাখ্যা
Tutorial advice
এই তালিকা টিউটোরিয়ালের নিজের পরামর্শ, pipeline আছে এমন টিমের জন্য।
- সাম্প্রতিক তিনটা pull request খুলুন। দেখুন প্রতিটায় test চলেছে কি না, আর একটা ফেল হওয়া test merge আটকেছে কি না।
- একটা branch-এ ইচ্ছা করে একটা test ভাঙুন। দেখুন run লাল হয় কি না, আর দুই-তিন ক্লিকে ফেল হওয়া test, তার log আর report-এ পৌঁছানো যায় কি না।
- জিজ্ঞেস করুন কোন suite শুধু schedule-এ চলে, আর পরদিন সকালে তার ফল কে পড়ে।
- জিজ্ঞেস করুন flaky test নিয়ে টিম কী করে: একটা ticket খোলে, নাকি পাস না হওয়া পর্যন্ত আবার চালায়।
- দেখুন প্রতিটা test job-এর সময়ের সীমা আছে কি না, আর test ফেল করলে report upload হয় কি না।
- workflow ফাইলে password, token আর key-সহ URL খুঁজুন।
- matrix-এর version-গুলো আপনার user-রা যে version চালান, তার সাথে মিলিয়ে দেখুন।
Key words
| Term | Meaning |
|---|---|
| Continuous integration (CI) | Committing code often to a shared repository, and building and testing each commit |
| Continuous delivery | Every change is built, tested, and pushed to a testing or staging environment; a person approves production |
| Continuous deployment | The same, but production updates happen automatically, with no approval |
| Pipeline | The automated path of a change from version control to the users |
| Workflow | A GitHub Actions YAML file in .github/workflows that runs one or more jobs |
| Event | The activity that starts a workflow, such as a push, a pull request, or a schedule |
| Job | A set of steps that runs on the same runner |
| Step | One shell script or one action |
| Action | A reusable building block that performs a task in a workflow |
| Runner | The server that runs a job |
| Matrix | One job run several times, with a different combination of variables each time |
| Artifact | A file that a run keeps, such as a test report |
| Required status check | A check that must pass before a merge into a protected branch |
| Jenkinsfile | The text file that defines a Jenkins Pipeline |
| Stage | A named subset of tasks in a Jenkins Pipeline, such as Build, Test, or Deploy |