From 5f3a40df8a70fb1ffc12f0eab3a7747404663367 Mon Sep 17 00:00:00 2001 From: Vivy Bot Date: Sat, 7 Feb 2026 17:30:20 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=91=B7=20ci:=20add=20build=20and=20li?= =?UTF-8?q?nt=20checks=20to=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 28 ++++++++++++++++++++++ .gitea/workflows/sync-github.yml | 20 ++++++++++++++++ .github/workflows/auto-pr-from-mirror.yaml | 23 ++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 .gitea/workflows/ci.yml create mode 100644 .gitea/workflows/sync-github.yml create mode 100644 .github/workflows/auto-pr-from-mirror.yaml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..756aeb5 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Integration Tests + +on: + pull_request: + branches: + - main + +jobs: + integration-tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup runtime environment (Bun) + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Linting test + run: bun run lint + + - name: Build test + run: bun run build diff --git a/.gitea/workflows/sync-github.yml b/.gitea/workflows/sync-github.yml new file mode 100644 index 0000000..17d558c --- /dev/null +++ b/.gitea/workflows/sync-github.yml @@ -0,0 +1,20 @@ +name: Sync to GitHub + +on: + push: + branches: + - main + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout from Gitea + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Push to GitHub mirror-main + run: | + git remote add github https://vivy-agent:${{ secrets.GH_TOKEN }}@github.com/rafiarrafif/SyzneTV-frontend.git + git push github HEAD:mirror-main --force diff --git a/.github/workflows/auto-pr-from-mirror.yaml b/.github/workflows/auto-pr-from-mirror.yaml new file mode 100644 index 0000000..1e7ea01 --- /dev/null +++ b/.github/workflows/auto-pr-from-mirror.yaml @@ -0,0 +1,23 @@ +name: Auto PR from mirror-main + +on: + push: + branches: + - mirror-main + +jobs: + pr: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Create PR via GitHub CLI + env: + GH_TOKEN: ${{ secrets.BOT_PAT }} + run: | + gh pr create \ + --base main \ + --head mirror-main \ + --title "Sync from Gitea main" \ + --body "Automated PR created from Gitea mirror branch." From d4cacf13ae95baf833731c3c8a613dc6550ad70d Mon Sep 17 00:00:00 2001 From: Vivy Bot Date: Sat, 7 Feb 2026 17:34:38 +0700 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=9A=20ci:=20fix=20CI=20by=20adding?= =?UTF-8?q?=20nodejs=20layer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 756aeb5..6e43f35 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,6 +13,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Setup Node (required by Next.js) + uses: actions/setup-node@v4 + with: + node-version: "24.13.0" + - name: Setup runtime environment (Bun) uses: oven-sh/setup-bun@v1 with: