Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat(ci): add lint and unit workflow

Tind83e6428129e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0dcd00256..3e7561f05 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,17 +1,52 @@
-name: Code quality
+name: CI
on:
push:
+ pull_request:
jobs:
- quality:
+ lint:
runs-on: ubuntu-24.04
steps:
- - name: Checkout
- uses: actions/checkout@v6
- - name: Setup Biome
- uses: biomejs/setup-biome@v2
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v4
+ with:
+ version: 10.32.1
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
with:
- version: 2.3.10
+ node-version: 20
+ cache: pnpm
+
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+
- name: Run Biome
- run: biome ci .
+ run: pnpm exec biome ci .
+
+ unit:
+ runs-on: ubuntu-24.04
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v4
+ with:
+ version: 10.32.1
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: pnpm
+
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+
+ - name: Run unit tests
+ run: pnpm test