Skip to content

Frontend is ready but more fixes needed #4

Frontend is ready but more fixes needed

Frontend is ready but more fixes needed #4

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
backend-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: BACKEND/package-lock.json
- name: Install Backend Dependencies
run: cd BACKEND && npm install
- name: Run Backend Tests
run: cd BACKEND && npm test
env:
MONGODB_URL: ${{ secrets.MONGODB_URL }}
ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}
ACCESS_TOKEN_EXPIRY: "1d"
CLOUDINARY_CLOUD_NAME: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
DB_NAME: "videostreaming" # You can specify a DB name for CI
frontend-build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install Frontend Dependencies
run: cd frontend && npm install
- name: Run Linter
run: cd frontend && npm run lint
- name: Run Build
run: cd frontend && npm run build