From dbb2fe63cd21dbc6ad206ae06ba70b75e1ad140a Mon Sep 17 00:00:00 2001 From: Michal Date: Sat, 21 Feb 2026 05:12:26 +0000 Subject: [PATCH] ci: add Gitea Actions CI pipeline with lint, typecheck, test, and build Runs on push to main and PRs. Parallel lint/typecheck/test jobs with a final build step that depends on all three passing. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ci.yml | 94 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 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..5bfb7ad --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,94 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - run: pnpm install --frozen-lockfile + + - name: Lint + run: pnpm lint + + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - run: pnpm install --frozen-lockfile + + - name: Generate Prisma client + run: pnpm --filter @mcpctl/db exec prisma generate + + - name: Typecheck + run: pnpm typecheck + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - run: pnpm install --frozen-lockfile + + - name: Generate Prisma client + run: pnpm --filter @mcpctl/db exec prisma generate + + - name: Run tests + run: pnpm test:run + + build: + runs-on: ubuntu-latest + needs: [lint, typecheck, test] + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - run: pnpm install --frozen-lockfile + + - name: Generate Prisma client + run: pnpm --filter @mcpctl/db exec prisma generate + + - name: Build all packages + run: pnpm build