Merge pull request #63 from valbeat/valbeat-patch-1 #166
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: 🧪 Test | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: ⎔ Corepack enable | |
run: corepack enable | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v4 | |
with: | |
cache: "pnpm" | |
- name: 📥 Install | |
run: pnpm i --frozen-lockfile | |
- name: 🧹 Lint | |
run: pnpm check && pnpm typecheck | |
- name: 🏗 Build | |
run: pnpm build | |
- name: 🧪 Unit Test | |
run: pnpm test |