GitHub Actions ile CI/CD İşlem Hatları
GitHub Actions ile sürekli entegrasyon ve teslimat işlem hattı oluşturarak Node.js uygulamanızın test ve dağıtım süreçlerini otomatikleştirin.
GitHub Actions ile CI/CD İşlem Hatları, CoddyKit'te ücretsiz bir Node.js Backend Development Bootcamp dersidir. Bu, 4 dersinin 4. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Node.js Backend Development Bootcamp öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Node.js Backend Development Bootcamp kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
What is CI/CD?
Continuous Integration (CI) automatically builds and tests your code on every push. Continuous Delivery/Deployment (CD) automatically ships passing code to production.
Together they catch bugs early and remove manual, error-prone release steps.
Why GitHub Actions?
GitHub Actions runs workflows directly in your repository. There is no separate server to manage, it integrates with pull requests, and it has a generous free tier for public repos.
Workflow File Location
Workflows are YAML files inside .github/workflows/. Each file describes one workflow, and a repo can have many.
// .github/workflows/ci.ymlTriggers
The on key defines what starts a workflow. Common triggers are pushes and pull requests to specific branches.
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]Jobs and Runners
A workflow has one or more jobs. Each job runs on a fresh virtual machine (a runner) you select with runs-on.
jobs:
test:
runs-on: ubuntu-latestSteps
A job is a sequence of steps. A step either runs a shell command (run) or uses a prebuilt action (uses).
steps:
- uses: actions/checkout@v4
- run: echo 'Code checked out'Setting Up Node.js
The official setup-node action installs the Node version you specify and can cache dependencies for faster runs.
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npmInstalling and Testing
With Node ready, install dependencies and run your test suite. If tests fail the job fails, blocking the merge.
- run: npm ci
- run: npm testA Complete CI Workflow
Here is a full, minimal pipeline that checks out code, sets up Node, installs, and tests on every push and pull request.
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 20, cache: npm }
- run: npm ci
- run: npm testSecrets
Never commit API keys. Store them in your repo's Settings > Secrets and reference them with the secrets context. They are masked in logs.
- run: ./deploy.sh
env:
API_KEY: ${{ secrets.API_KEY }}Adding a Deploy Step
For CD, add a job that runs only after tests pass and only on the main branch, then deploys. The needs and if keys control ordering and conditions.
deploy:
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- run: echo 'Deploying...'Quick Check
Test your CI/CD knowledge.
Recap
You built an automated pipeline with GitHub Actions:
- Workflows live in
.github/workflows/as YAML onsets triggers;jobsrun onruns-onrunners- Steps use prebuilt actions or run shell commands
- Install with
npm ciand runnpm testautomatically - Store credentials in secrets and gate deploys with
needs+if
Now every push is tested and safe code can ship automatically.
Sıkça Sorulan Sorular
“GitHub Actions ile CI/CD İşlem Hatları” dersi ücretsiz mi?
Evet — “GitHub Actions ile CI/CD İşlem Hatları” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Node.js Backend Development Bootcamp kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Node.js Backend Development Bootcamp kursu toplamda 4 dersten oluşur.
“GitHub Actions ile CI/CD İşlem Hatları” dersinde ne öğreneceğim?
GitHub Actions ile sürekli entegrasyon ve teslimat işlem hattı oluşturarak Node.js uygulamanızın test ve dağıtım süreçlerini otomatikleştirin. Node.js Backend Development Bootcamp ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
Node.js Backend Development Bootcamp öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te Node.js Backend Development Bootcamp, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 4. dersidir.
“GitHub Actions ile CI/CD İşlem Hatları” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu Node.js Backend Development Bootcamp dersinde kod yazıp çalıştırabilir miyim?
Evet. Her Node.js Backend Development Bootcamp dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Docker ile Konteynerleştirme
- Buluta Dağıtım (AWS/Heroku)
- PM2 ile Süreç Yönetimi
- GitHub Actions ile CI/CD İşlem Hatları