From 2882d3956ee525ac08096c6d4c17f5d5908a46b6 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Thu, 19 Feb 2026 15:29:39 +0100 Subject: [PATCH] added gitea action for frontend build and backend check --- .gitea/workflows/ci.yml | 60 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..f25b86f --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,60 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + frontend-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + cache-dependency-path: frontend/package-lock.json + + - name: Install Dependencies + run: npm install + working-directory: frontend + + - name: Build Frontend + run: npm run build + working-directory: frontend + + backend-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + cache: 'pip' + cache-dependency-path: backend/requirements.txt + + - name: Install Dependencies + run: pip install -r requirements.txt + working-directory: backend + + - name: Django System Check + run: python manage.py check + working-directory: backend + env: + SECRET_KEY: "ci-test-key" + DEBUG: "false" + ALLOWED_HOSTS: "localhost" + + - name: Check Migrations + run: python manage.py makemigrations --check --dry-run + working-directory: backend + env: + SECRET_KEY: "ci-test-key" + DEBUG: "false" + ALLOWED_HOSTS: "localhost"