Skip to content

Commit

Permalink
refactor: Add CI workflows for frontend and backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Dedakup committed Nov 18, 2024
1 parent e3179f4 commit 5d5f3b0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Backend CI

on:
push:
branches:
- develop
- feature/*
pull_request:
branches:
- develop

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install Dependencies
run: npm install
working-directory: ./backend

- name: Lint Code
run: npm run lint
working-directory: ./backend

- name: Run Tests
run: npm test
working-directory: ./backend

- name: Deploy to Staging (Placeholder)
run: echo "Deploying backend to staging"
2 changes: 1 addition & 1 deletion .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
node-version: 16

- name: Install Dependencies
run: npm install
Expand Down

0 comments on commit 5d5f3b0

Please sign in to comment.