31 lines
637 B
YAML
31 lines
637 B
YAML
name: "🧪 Unit Tests"
|
|
on:
|
|
workflow_call:
|
|
jobs:
|
|
unitTests:
|
|
name: "🧪 Unit Tests"
|
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
|
steps:
|
|
- name: ⬇️ Checkout repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: ⎔ Setup pnpm
|
|
uses: pnpm/action-setup@v2.2.4
|
|
with:
|
|
version: 7.18
|
|
|
|
- name: ⎔ Setup node
|
|
uses: buildjet/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: "pnpm"
|
|
|
|
- name: 📥 Download deps
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run Unit Tests
|
|
run: |
|
|
pnpm run test
|