ci: add Gitea Actions CI/CD pipeline

This commit is contained in:
2026-02-10 18:25:24 +01:00
parent 62ae5140b9
commit 97bf6da106
+47
View File
@@ -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"