From 97bf6da106bfac329f5922fd7f7d972e0f4f8b92 Mon Sep 17 00:00:00 2001 From: Damjan Savic Date: Tue, 10 Feb 2026 18:25:24 +0100 Subject: [PATCH] ci: add Gitea Actions CI/CD pipeline --- .gitea/workflows/ci.yml | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 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..7da2851 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,47 @@ +name: CI/CD Pipeline + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Lint + run: pnpm run lint + + - name: Build + run: pnpm run build + env: + NODE_ENV: production + + - name: Test + run: pnpm run test -- --passWithNoTests + env: + NODE_ENV: test + + deploy: + needs: ci + runs-on: ubuntu-latest + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + steps: + - name: Deploy + run: | + echo "Deployment handled via webhook"