mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-12 18:11:51 +08:00
d1ddfa0657
- ci.yml: add pnpm/action-setup, cache pnpm, use pnpm exec - bump-version.yml: add pnpm/action-setup, pnpm version, drop package-lock.json from git add - husky pre-commit: npm run -> pnpm run
27 lines
493 B
YAML
27 lines
493 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: pnpm
|
|
- run: pnpm install --frozen-lockfile
|
|
|
|
- name: Format check
|
|
run: pnpm run format:check
|
|
|
|
- name: Typecheck
|
|
run: pnpm exec tsc --noEmit
|
|
|
|
- name: Tests
|
|
run: pnpm exec vitest run
|