From 432d9d4ce1b25ad0de50bae63aeda01106a1c696 Mon Sep 17 00:00:00 2001 From: Zakaria Date: Fri, 23 Oct 2026 11:12:51 -0400 Subject: [PATCH] ci: run lint, type-check, tests and build on Gitea Actions Runs on pushes to main and on every pull request. --- .gitea/workflows/ci.yml | 46 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 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..5188381 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,46 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + checks: + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.4.2 + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Lint + run: pnpm lint + + - name: Type-check + run: pnpm type-check + + - name: API tests + run: pnpm test + + - name: Frontend tests + run: pnpm --filter @floci/frontend test + + - name: Build + run: pnpm build