mirror of
https://github.com/rekby/obsidian-video-notes.git
synced 2026-07-22 06:08:35 +00:00
37 lines
620 B
YAML
37 lines
620 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches: ["**"]
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci --no-optional
|
|
|
|
- name: Build project
|
|
run: npm run build
|
|
|
|
- name: Run unit tests
|
|
run: npm run test:unit
|
|
|
|
- name: Run tests
|
|
run: npm test
|
|
|
|
- name: Run linter
|
|
run: npm run lint
|