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",