From a112e6c39f43b82086461468c275c0f0c570095a Mon Sep 17 00:00:00 2001 From: bryancito1090 Date: Mon, 19 Oct 2026 15:13:05 -0500 Subject: [PATCH 1/4] chore(ci): add github workflows directory for compatibility --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..94868a7 --- /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 + uses: actions/checkout@v4 + + - name: Setup Node.js 22 + uses: actions/setup-node@v4 + with: + node-version: 22 + + - 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 -- 2.40.1 From 188c822514c4dac890c65333cdd613258d6eb747 Mon Sep 17 00:00:00 2001 From: bryancito1090 Date: Tue, 20 Oct 2026 07:43:53 -0500 Subject: [PATCH 2/4] fix(ci): remove redundant setup-node step in docker runner --- .forgejo/workflows/ci.yml | 5 ----- .github/workflows/ci.yml | 5 ----- 2 files changed, 10 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 94868a7..e71e2c9 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -20,11 +20,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 - - name: Setup Node.js 22 - uses: actions/setup-node@v4 - with: - node-version: 22 - - name: Install Frontend Dependencies run: | cd src/frontend diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94868a7..e71e2c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 - - name: Setup Node.js 22 - uses: actions/setup-node@v4 - with: - node-version: 22 - - name: Install Frontend Dependencies run: | cd src/frontend -- 2.40.1 From 4269b4cd4e195b4e04320b266604fe1e2400f682 Mon Sep 17 00:00:00 2001 From: bryancito1090 Date: Tue, 20 Oct 2026 07:47:54 -0500 Subject: [PATCH 3/4] fix(ci): point GITHUB_SERVER_URL to public Forgejo URL for runner git clone --- .forgejo/workflows/ci.yml | 4 ++++ .github/workflows/ci.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index e71e2c9..7d02b19 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -16,9 +16,13 @@ jobs: validate-frontend: name: Build & Validate Frontend runs-on: ubuntu-latest + env: + GITHUB_SERVER_URL: https://git.bryan-bano.com steps: - name: Checkout Code uses: actions/checkout@v4 + env: + GITHUB_SERVER_URL: https://git.bryan-bano.com - name: Install Frontend Dependencies run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e71e2c9..7d02b19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,13 @@ jobs: validate-frontend: name: Build & Validate Frontend runs-on: ubuntu-latest + env: + GITHUB_SERVER_URL: https://git.bryan-bano.com steps: - name: Checkout Code uses: actions/checkout@v4 + env: + GITHUB_SERVER_URL: https://git.bryan-bano.com - name: Install Frontend Dependencies run: | -- 2.40.1 From 4753dd2ffa748d8f1b96bac211563d675647d8f1 Mon Sep 17 00:00:00 2001 From: bryancito1090 Date: Tue, 20 Oct 2026 07:50:43 -0500 Subject: [PATCH 4/4] fix(ci): replace actions/checkout with native git fetch directly to Forgejo --- .forgejo/workflows/ci.yml | 11 ++++++----- .github/workflows/ci.yml | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 7d02b19..c7121d5 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -16,13 +16,14 @@ jobs: validate-frontend: name: Build & Validate Frontend runs-on: ubuntu-latest - env: - GITHUB_SERVER_URL: https://git.bryan-bano.com steps: - name: Checkout Code - uses: actions/checkout@v4 - env: - GITHUB_SERVER_URL: https://git.bryan-bano.com + 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 index 7d02b19..c7121d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,13 +16,14 @@ jobs: validate-frontend: name: Build & Validate Frontend runs-on: ubuntu-latest - env: - GITHUB_SERVER_URL: https://git.bryan-bano.com steps: - name: Checkout Code - uses: actions/checkout@v4 - env: - GITHUB_SERVER_URL: https://git.bryan-bano.com + 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: | -- 2.40.1