fix: correct readme and clean up code #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🕵️ Checks | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- '.vscode/**' | |
- 'demo/**' | |
- '*.md' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: 🧱 Build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: 🏗 Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
- name: 📦 Install dependencies | |
run: pnpm install | |
- name: 🧱 Build project | |
run: pnpm build | |
test: | |
name: 🧪 Test | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [18.x, 20.x] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: 🏗 Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
- name: 📦 Install dependencies | |
run: pnpm install | |
- name: 🧪 Run tests | |
run: pnpm test |