BM: Baca dalam Bahasa Melayu
World 7: Robots: Actions & CI/CD
What CI/CD means
You will learn: how a robot can test and ship your code on every push.
The problem
Friday night. Mei merges a change. The diary site breaks. Nobody ran the tests. Who should run them, every single time?
Pick one answer.
Watch
Tap each point on the timeline.
Tap each step. This robot habit is continuous integration (CI): A robot tests every change as soon as you push it., or CI. Every push gets checked, so bugs show up early.
Watch
Tests passed? Then a robot can ship it too. That is continuous delivery / deployment (CD): A robot ships your tested changes, so users get them fast., continuous delivery or deployment. Tap a step to peek at its log.
Try it
Is it checking, or shipping? Sort each job.
Drag a card into a box. Or tap the card, then tap the box.
Watch
GitHub’s robot is called GitHub Actions: GitHub's robot service. It runs your workflows on its computers.. You write its instructions in files. They live in .github/workflows/ inside your repo.
Predict
Mei’s next push breaks a test. What does CI do?
Pick one answer.
Check
Good habit, or needs work? Swipe each one.
Swipe right for good, left for needs work. Or use the buttons.
Push small changes often, so CI checks each one
You did it!
You can now explain CI and CD.
Go deeper (optional)
CD comes in two flavours. Continuous delivery: every change is ready, and a person presses ship. Continuous deployment: it ships by itself when the checks pass. Many tools do CI. This world uses GitHub Actions.
Bahasa Melayu
Jumaat malam. Mei merge satu perubahan. Laman diari rosak. Tiada siapa jalankan ujian. Siapa patut jalankan ujian, setiap kali?
Ketik setiap langkah. Tabiat robot ini ialah continuous integration (integrasi berterusan), atau CI. Setiap push disemak, jadi pepijat cepat dijumpai.
Ujian lulus? Robot boleh terus hantar juga. Itu CD, continuous delivery atau deployment. Ketik satu langkah untuk lihat log-nya.
Ini menyemak, atau menghantar? Susun setiap tugas.
Robot GitHub bernama GitHub Actions. Anda tulis arahannya dalam fail. Fail itu duduk dalam .github/workflows/ di dalam repo anda.
Push Mei yang seterusnya rosakkan satu ujian. Apa CI buat?
Tabiat baik, atau perlu dibaiki? Leret setiap satu.
Kini anda boleh terangkan CI dan CD.
You finished this before. Practice is always welcome!
Official docs: Understanding GitHub Actions · Continuous integration · Continuous deployment
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?