Skip to content

Merge pull request #27 from AhmedFatthy1040/dockerizing-api #5

Merge pull request #27 from AhmedFatthy1040/dockerizing-api

Merge pull request #27 from AhmedFatthy1040/dockerizing-api #5

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-backend:
name: Build Backend
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v4
# Step 2: Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16
# Step 3: Install dependencies
- name: Install dependencies
run: npm install
working-directory: ./api
# Step 4: Build the backend if necessary (you can remove this if not needed)
- name: Build Backend
run: npm run build
working-directory: ./api