Skip to content

Commit

Permalink
Merge pull request #19 from kalim-Asim/feature/testing
Browse files Browse the repository at this point in the history
setting up testing infrastructure
  • Loading branch information
anubhabnath098 authored Dec 17, 2024
2 parents 520d154 + 81476c2 commit 3dc7f7c
Show file tree
Hide file tree
Showing 11 changed files with 4,995 additions and 733 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

name: CI/CD Pipeline

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install Dependencies
run: npm install

- name: Run Tests
run: npm test
24 changes: 24 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Testing Guidelines

## Prerequisites
- Node.js (v18+ recommended)
- NPM

## Setup Instructions

1. Clone the repository:
bash
git clone https://github.com/opencodeiiita/SponsoHive-Backend.git
cd SponsoHive-Backend

2. Install dependencies:

npm install

3. Run tests locally:

npm test

4. Run tests in watch mode for live feedback:

npm run test:watch
Loading

0 comments on commit 3dc7f7c

Please sign in to comment.