Skip to content

Added Github Workflows For Backend #1

Added Github Workflows For Backend

Added Github Workflows For Backend #1

name: Backend | Build and Run (tsc)
on: [push, pull_request]
jobs:
formatting-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Go to backend directory
run: cd portfolio-backend
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Build the project using tsc
run: npm run build
- name: Run the project
env:
PORT: 3000
MONGO_URI: ${{ secrets.MONGO_URI }}
run: npm run serve