https://github.com/neha-dev-dot/ci-githubaction
This project is a hands-on implementation of Continuous Integration (CI) using GitHub Actions with a basic Node.js backend. The goal is to understand and demonstrate how CI pipelines can be automated using GitHub’s native CI/CD features. The workflow runs automatically on every push or pull request to the main branch.
https://github.com/neha-dev-dot/ci-githubaction
continuous-integration devops-tools github-actions github-actions-ci nodejs
Last synced: 16 days ago
JSON representation
This project is a hands-on implementation of Continuous Integration (CI) using GitHub Actions with a basic Node.js backend. The goal is to understand and demonstrate how CI pipelines can be automated using GitHub’s native CI/CD features. The workflow runs automatically on every push or pull request to the main branch.
- Host: GitHub
- URL: https://github.com/neha-dev-dot/ci-githubaction
- Owner: neha-dev-dot
- Created: 2025-06-17T09:41:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-06-17T10:01:37.000Z (10 months ago)
- Last Synced: 2025-06-17T10:42:57.297Z (10 months ago)
- Topics: continuous-integration, devops-tools, github-actions, github-actions-ci, nodejs
- Language: JavaScript
- Homepage: https://github.com/neha-dev-dot/CI-GithubAction
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learning CI with GitHub Actions (Node.js App)
Hi! 👋
This repository is a **Node.js backend project** that I randomly picked up (just for learning purposes) and tried implementing **CI (Continuous Integration)** using **GitHub Actions** for the first time.
## 🧠 Why I Did This
I wanted to learn how to:
- Set up a basic GitHub Actions workflow
- Automatically run steps like `npm install` after each push
- Understand how CI works in real-time projects
## 🔧 What I’ve Implemented
✅ **CI (Continuous Integration)** is done!
Every time I push code to the `main` branch:
- GitHub Actions runs automatically
- It installs dependencies using `npm install`
- (Optional) It can run tests, but this project doesn't have any test cases yet.
📂 Workflow file location: `.github/workflows/ci.yml`
### GitHub Actions Workflow
```yaml
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Placeholder test
run: echo "No tests defined"
```
## ❓Did I Do CD (Continuous Deployment)?
❌ Not yet.
CD (automatically deploying code to a server or platform like EC2, Vercel, etc.) is not done here.
But I plan to:
Connect this to a server or platform in the next step
Deploy the app automatically once CI passes
## 🏁 How to Run Locally
```
git clone https://github.com/your-username/ci-cd-using-github-action.git
cd ci-cd-using-github-action
npm install
node server.js
```
## 🧑💻 Author
Neha Bharti
Just experimenting and learning DevOps! 💡
---
Let me know if you'd like me to help you **implement CD** as your next step — for example, deploying automatically to an EC2 server after CI passes.