Add Docker Support and CI Pipeline for Backend #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |