diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..c96b3e6 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -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 diff --git a/.github/workflows/version.yml b/.gitea/workflows/version.yml similarity index 89% rename from .github/workflows/version.yml rename to .gitea/workflows/version.yml index a4a1960..270a9e7 100644 --- a/.github/workflows/version.yml +++ b/.gitea/workflows/version.yml @@ -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 diff --git a/CLAUDE.md b/CLAUDE.md index 5bc3b92..777bbb1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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.