👷 ci: add build and lint checks to CI
Some checks failed
Integration Tests / integration-tests (pull_request) Failing after 47s
Some checks failed
Integration Tests / integration-tests (pull_request) Failing after 47s
This commit is contained in:
28
.gitea/workflows/ci.yml
Normal file
28
.gitea/workflows/ci.yml
Normal file
@ -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
|
||||||
20
.gitea/workflows/sync-github.yml
Normal file
20
.gitea/workflows/sync-github.yml
Normal file
@ -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
|
||||||
23
.github/workflows/auto-pr-from-mirror.yaml
vendored
Normal file
23
.github/workflows/auto-pr-from-mirror.yaml
vendored
Normal file
@ -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."
|
||||||
Reference in New Issue
Block a user