Skip to content

docs:update readme.md file #9

docs:update readme.md file

docs:update readme.md file #9

Workflow file for this run

name: LeaveFlow CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
mongo:
image: mongo:latest
ports:
- 27017:27017
options: >-
--health-cmd "mongosh --eval 'db.runCommand({ ping: 1 })'"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
MONGO_URI: mongodb://localhost:27017/leaveflow_test
JWT_SECRET: testsecret
NODE_ENV: test
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js (backend)
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: backend/package-lock.json
- name: Install backend dependencies
working-directory: backend
run: npm install
- name: Setup Node.js (frontend)
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: client/package-lock.json
- name: Install frontend dependencies
working-directory: client
run: npm install
- name: Build frontend
working-directory: client
run: npm run build