From 4762a76f5a7794187aaa1c24fbc0ae7711f8ab0a Mon Sep 17 00:00:00 2001 From: Xsidz Date: Wed, 16 Jul 2025 11:35:44 +0530 Subject: [PATCH] backend-test --- .github/workflows/Integration.yml | 26 ++++++++++++++++++++++++++ backend/package.json | 3 +-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/Integration.yml diff --git a/.github/workflows/Integration.yml b/.github/workflows/Integration.yml new file mode 100644 index 0000000..8f87489 --- /dev/null +++ b/.github/workflows/Integration.yml @@ -0,0 +1,26 @@ +name: Integration + +on: + push : + branches : ["main"] + pull_request: + branches : ["main"] + +jobs: + test: + runs-on: ubuntu-latest + defaults: + run: + working-directory: backend + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 23 + - name : Install dependencies + run: npm i + - name: Run test + run: npm test + + diff --git a/backend/package.json b/backend/package.json index eb034a1..ca7c296 100644 --- a/backend/package.json +++ b/backend/package.json @@ -3,8 +3,7 @@ "version": "1.0.0", "main": "index.js", "scripts": { - - "test": "echo \"Error: no test specified\" && exit 1" + "test": "node --test" }, "type": "module", "author": "Siddhesh kabra",