Add : added new files for more configuration and and updates on new p… #23
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
name: Node.js CI | |
on: [push] | |
jobs: | |
build: | |
name: Run Code formatting , type checking & tests, Project Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install dependencies | |
run: npm ci | |
working-directory: ./client | |
- name: Format code | |
run: npm run format:style | |
working-directory: ./client | |
- name: Run unit tests | |
run: npm run test | |
working-directory: ./client | |
- name: Build the project | |
run: npm run build --if-present | |
working-directory: ./client | |
- name: Install dependencies for backend | |
run: npm install --legacy-peer-deps | |
working-directory: ./backend | |
- name: Format code | |
run: npm run format:style | |
working-directory: ./backend | |
- name: Run unit tests using jest framwework | |
run: npm run test | |
working-directory: ./backend | |
- name: Build the project | |
run: npm run build | |
working-directory: ./backend | |