37 lines
922 B
YAML
37 lines
922 B
YAML
name: CI Pipeline - Quality & Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- main
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
- main
|
|
- master
|
|
|
|
jobs:
|
|
validate-frontend:
|
|
name: Build & Validate Frontend
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
run: |
|
|
git config --global --add safe.directory "*"
|
|
git init
|
|
git remote add origin https://git.bryan-bano.com/Bryan.bano/PORTFOLIO.git 2>/dev/null || git remote set-url origin https://git.bryan-bano.com/Bryan.bano/PORTFOLIO.git
|
|
git fetch --depth 1 origin ${{ github.sha }}
|
|
git checkout --force FETCH_HEAD
|
|
|
|
- name: Install Frontend Dependencies
|
|
run: |
|
|
cd src/frontend
|
|
npm ci
|
|
|
|
- name: Build Angular 20 Production Bundle
|
|
run: |
|
|
cd src/frontend
|
|
npm run build -- --configuration production
|