chore(ci): migrate to Gitea local CI, disable GitHub Actions
- Add .gitea/workflows/ci.yml for self-hosted Gitea runner - Disable .github/workflows/ci.yml (GitHub billing blocked)
This commit is contained in:
parent
90dd2d3bd5
commit
ad50e604c6
75
.gitea/workflows/ci.yml
Normal file
75
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,75 @@
|
||||
name: CI — NoteLett
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
COMMON_PLAT: /Users/sd9235/code/mygh/learning_ai_common_plat
|
||||
DB_PROVIDER: memory
|
||||
JWT_SECRET: ci-test-secret-at-least-32-characters-long
|
||||
|
||||
jobs:
|
||||
backend:
|
||||
name: Backend — typecheck + test + build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build @bytelyst/* packages
|
||||
working-directory: ${{ env.COMMON_PLAT }}
|
||||
run: pnpm install --frozen-lockfile && pnpm build
|
||||
|
||||
- name: Install workspace dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Backend typecheck
|
||||
run: pnpm --filter @notelett/backend run typecheck
|
||||
|
||||
- name: Backend tests
|
||||
run: pnpm --filter @notelett/backend run test
|
||||
|
||||
- name: Backend build
|
||||
run: pnpm --filter @notelett/backend run build
|
||||
|
||||
web:
|
||||
name: Web — typecheck + test + build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build @bytelyst/* packages
|
||||
working-directory: ${{ env.COMMON_PLAT }}
|
||||
run: pnpm install --frozen-lockfile && pnpm build
|
||||
|
||||
- name: Install workspace dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Web typecheck
|
||||
run: pnpm --filter @notelett/web run typecheck
|
||||
|
||||
- name: Web tests
|
||||
run: pnpm --filter @notelett/web run test
|
||||
|
||||
- name: Web build
|
||||
run: pnpm --filter @notelett/web run build
|
||||
|
||||
mobile:
|
||||
name: Mobile — typecheck
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build @bytelyst/* packages
|
||||
working-directory: ${{ env.COMMON_PLAT }}
|
||||
run: pnpm install --frozen-lockfile && pnpm build
|
||||
|
||||
- name: Install workspace dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Mobile typecheck
|
||||
run: pnpm --filter @notelett/mobile run typecheck
|
||||
Loading…
Reference in New Issue
Block a user