Skip to content

Fix KMD and add tests #54

Fix KMD and add tests

Fix KMD and add tests #54

Workflow file for this run

name: CI
on:
pull_request:
branches:
- '*'
push:
branches:
- 'main'
jobs:
run-ci:
name: Build, Lint, Typecheck, and Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
- name: Prettier
run: pnpm prettier
- name: Typecheck
run: pnpm typecheck
- name: Run tests
run: pnpm test