chore(ci): configure automated build pipeline for frontend
CI Pipeline - Quality & Build / Build & Validate Frontend (push) Successful in 35s
Details
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:
commit
9a3d625c5f
|
|
@ -18,12 +18,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js 22
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
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: |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue