Skip to content

Build(deps-dev): Bump vite from 4.4.9 to 5.0.5 in /backend #14

Build(deps-dev): Bump vite from 4.4.9 to 5.0.5 in /backend

Build(deps-dev): Bump vite from 4.4.9 to 5.0.5 in /backend #14

Workflow file for this run

name: CI Pipeline
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
backend-job:
name: ExpressJS Backend
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js v20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
cache-dependency-path: 'backend/package-lock.json'
- name: Install Dependencies
run: npm ci
working-directory: ./backend
- name: Prisma Generate
run: npx prisma generate
working-directory: ./backend
- name: Build
run: npm run build
working-directory: ./backend
- name: Lint
run: npm run lint
working-directory: ./backend
- name: Run Tests
run: npm test
working-directory: ./backend
frontend-job:
name: ReactJS Frontend
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js v20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
cache-dependency-path: 'frontend/package-lock.json'
- name: Install Dependencies
run: npm ci
working-directory: ./frontend
- name: Build
run: npm run build
working-directory: ./frontend
- name: Lint
run: npm run lint
working-directory: ./frontend
- name: Run Tests
run: npm test
working-directory: ./frontend
lighthouse-job:
name: Lighthouse Audit
runs-on: ubuntu-latest
needs: [frontend-job]
steps:
- uses: actions/checkout@v3
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v10
with:
urls: |
${{ secrets.REACT_APP_URL }}
budgetPath: ./budget.json # test performance budgets
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage