Skip to content

add how to test

add how to test #29

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- run: pnpm lint && [ -z "$(git status --porcelain)" ]
- run: pnpm test
- uses: codecov/codecov-action@v3
with:
files: coverage/lcov.info