Skip to content

feat: Add comprehensive testing suite with Jest, Supertest, and React… #44

feat: Add comprehensive testing suite with Jest, Supertest, and React…

feat: Add comprehensive testing suite with Jest, Supertest, and React… #44

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
frontend:
name: Frontend
runs-on: ubuntu-latest
defaults:
run:
working-directory: barterly-frontend
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: barterly-frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm test
backend:
name: Backend
runs-on: ubuntu-latest
defaults:
run:
working-directory: barterly-backend
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: barterly-backend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Test
run: npm test