chore(ci): configure automated build pipeline for frontend
CI Pipeline - Quality & Build / Build & Validate Frontend (push) Successful in 35s Details

Merge pull request #1 from chore/setup-ci-workflow into develop
This commit is contained in:
Bryan.bano 2026-10-20 12:51:45 +00:00
commit 9a3d625c5f
2 changed files with 42 additions and 6 deletions

View File

@ -18,12 +18,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 run: |
git config --global --add safe.directory "*"
- name: Setup Node.js 22 git init
uses: actions/setup-node@v4 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
with: git fetch --depth 1 origin ${{ github.sha }}
node-version: 22 git checkout --force FETCH_HEAD
- name: Install Frontend Dependencies - name: Install Frontend Dependencies
run: | run: |

36
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,36 @@
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