diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 94868a7..c7121d5 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -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: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c7121d5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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