From cbc978df6d0cbed144aff5eb4cedcef749902113 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Wed, 22 Apr 2026 09:09:21 +0300 Subject: [PATCH] chore(ci): add unit and component tests to lefthook and gitea workflow --- .gitea/workflows/workflow.yml | 6 ++++++ lefthook.yml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.gitea/workflows/workflow.yml b/.gitea/workflows/workflow.yml index fbbc796..a38c2ba 100644 --- a/.gitea/workflows/workflow.yml +++ b/.gitea/workflows/workflow.yml @@ -43,6 +43,12 @@ jobs: - name: Type Check run: yarn check + - name: Run Unit Tests + run: yarn test:unit + + - name: Run Component Tests + run: yarn test:component + publish: needs: build # Only runs if tests/lint pass runs-on: ubuntu-latest diff --git a/lefthook.yml b/lefthook.yml index 23fb521..db427ed 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -13,6 +13,10 @@ pre-commit: pre-push: parallel: true commands: + test-unit: + run: yarn test:unit + test-component: + run: yarn test:component type-check: run: yarn tsc --noEmit