Skip to content

chore(repo): add Vitest into codebase #2

chore(repo): add Vitest into codebase

chore(repo): add Vitest into codebase #2

name: Unit Tests
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: πŸ›ŽοΈ Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # All history for branches and tags
- name: 🍞 Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: πŸ“‚ Install Dependencies
run: bun install
- name: πŸ’€ Run Unit Tests
run: bun run test:vitest
- name: πŸ’° Profit
run: echo 🐞