Skip to content

Update README.md

Update README.md #2

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
name: Unit & Integration Tests
runs-on: ubuntu-latest
env:
NODE_ENV: test
JWT_SECRET: ${{ secrets.JWT_SECRET }}
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
MONGO_URI: mongodb://root:password@localhost:27017/testdb?authSource=admin
strategy:
matrix:
node-version: [18.x]
services:
mongodb:
image: mongo:5.0
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- 27017:27017
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: backend/package-lock.json
- name: Install dependencies
working-directory: ./backend
run: npm ci
- name: Run tests with coverage
working-directory: ./backend
run: npm run test:coverage
env:
NODE_OPTIONS: --experimental-vm-modules