Skip to content

deploy.yml to have multi platform setup #3

deploy.yml to have multi platform setup

deploy.yml to have multi platform setup #3

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
backend:
name: Backend Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
cache-dependency-path: "./backend/package-lock.json"
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
frontend:
name: Frontend Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
cache-dependency-path: "./frontend/package-lock.json"
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build