-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from kalim-Asim/feature/testing
setting up testing infrastructure
- Loading branch information
Showing
11 changed files
with
4,995 additions
and
733 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.