Skip to content

feat: add vitest test suite and GitHub CI/CD #1

feat: add vitest test suite and GitHub CI/CD

feat: add vitest test suite and GitHub CI/CD #1

Workflow file for this run

name: CI
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master, develop]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Run npm audit
run: npm audit --audit-level=high
continue-on-error: true