mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-26 15:06:06 +00:00
chore(ci): run versioning only on Gitea, CI on Gitea and GitHub
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bf38fc3314
commit
a747b9f161
3 files changed
+43
-3
No files matched your search
@@ -0,0 +1,38 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [development]
|
||||
push:
|
||||
branches: [development, main]
|
||||
|
||||
jobs:
|
||||
backend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
cache: "pip"
|
||||
- run: pip install -r requirements.txt
|
||||
# No linter or test suite is configured for the backend yet.
|
||||
# This is a lightweight sanity check (syntax/import compile), not a test run.
|
||||
- run: python -m compileall backend -q
|
||||
|
||||
frontend:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: frontend
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
cache: "npm"
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
- run: npm ci
|
||||
# `npm run lint` has no ESLint config checked in yet, so it is not run here.
|
||||
# `build` runs `vue-tsc` first, which is the available type-check.
|
||||
- run: npm run build
|
||||
@@ -9,7 +9,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
bump:
|
||||
if: github.actor != 'github-actions[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
|
||||
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -19,8 +19,8 @@ jobs:
|
||||
|
||||
- name: Configure git identity
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config user.name "gitea-actions[bot]"
|
||||
git config user.email "gitea-actions[bot]@users.noreply.zenvairo.es"
|
||||
|
||||
- name: Determine bump type
|
||||
id: bump
|
||||
@@ -24,6 +24,8 @@ FastAPI backend under `backend/` (API routers in `backend/api`, core services in
|
||||
- No backend linter/formatter (ruff/black/flake8) and no automated test suite (pytest/vitest) are configured yet. Do not assume `npm run lint` passes — it has no config.
|
||||
- Single `frontend/package.json` version field; there is no root `package.json`/`pyproject.toml`, so the release workflow tracks the version in the root `VERSION` file.
|
||||
|
||||
- CI runs on both Gitea (`.gitea/workflows/ci.yml`) and GitHub (`.github/workflows/ci.yml`); keep them in sync. Versioning (`version.yml`) exists only under `.gitea/workflows/`.
|
||||
|
||||
## Deployment
|
||||
Not yet documented here; no deployment workflow exists in this repo.
|
||||
|
||||
|
||||
Reference in new issue
Block a user