Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
feat: add unit tests using vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
Tijawk committed Apr 2, 2023
1 parent 08b65ab commit ba46bbd
Show file tree
Hide file tree
Showing 12 changed files with 2,967 additions and 56 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Runs All Unit tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test
- name: Try to build
run: npm run build

Loading

0 comments on commit ba46bbd

Please sign in to comment.