add basic ci pipeline

This commit is contained in:
Carlos Sousa 2025-06-30 13:48:34 +02:00
parent d12bab05a9
commit 5afb9aa05f

31
.github/workflows/react_ci.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: React CI Pipeline
# Triggers
on:
push:
branches:
- master
jobs:
# Build and Test Job
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'npm'
cache-dependency-path: './frontend/package-lock.json'
- name: Install Dependencies
working-directory: ./frontend
run: npm install
- name: Build Frontend
working-directory: ./frontend
run: npm run build