Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,45 @@ on:
branches:
- prod
- dev
pull_request:
branches:
- prod
- dev

jobs:
build:
runs-on: self-hosted
if : github.event_name == 'pull_request'
steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Install backend dependencies
working-directory: ./backend
run: |
npm ci

- name: Install frontend dependencies
working-directory: ./frontend
run: |
npm ci

- name: Build API
working-directory: ./backend
run: npm run build

- name: Build Frontend
working-directory: ./frontend
run: npm run build

deploy-api:
runs-on: self-hosted
if : github.event_name == 'push'

steps:
- name: Checkout repository
Expand All @@ -34,6 +69,7 @@ jobs:

deploy-front:
runs-on: self-hosted
if : github.event_name == 'push'

steps:
- name: Checkout repository
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ignorer les node_modules du frontend
frontend/node_modules/
frontend/dist/

# Ignorer les node_modules du backend
backend/node_modules/
Expand Down
Loading
Loading