2024-11-24 22:58:59 -05:00
|
|
|
name: Run Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["*"]
|
|
|
|
pull_request:
|
|
|
|
branches: ["*"]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
vitest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
2024-12-06 08:56:05 -05:00
|
|
|
lfs: false
|
|
|
|
|
|
|
|
- name: Checkout LFS
|
|
|
|
run: git lfs pull
|
2024-11-24 22:58:59 -05:00
|
|
|
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version-file: "project/.nvmrc"
|
|
|
|
cache: "npm"
|
|
|
|
cache-dependency-path: "project/package.json"
|
|
|
|
|
|
|
|
- name: Install NPM Dependencies
|
|
|
|
run: npm install
|
|
|
|
working-directory: ./project
|
|
|
|
|
|
|
|
- name: Run Tests
|
|
|
|
run: npm run test
|
|
|
|
working-directory: ./project
|