Skip to content

build: add commitlint to git hooks #594

build: add commitlint to git hooks

build: add commitlint to git hooks #594

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
merge_group:
branches: [main]
jobs:
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18
- 20
- 22
name: Node.js ${{ matrix.node-version }} Quick
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Type check
if: matrix.node-version == 20
run: pnpm typecheck
- name: Lint
if: matrix.node-version == 20
run: pnpm lint
- name: Run unit tests
run: pnpm test
env:
FORCE_COLOR: 2
- name: Run examples
run: cd examples && pnpm all