groldsf_obsidian_check_plugin/.github/workflows/test.yml
2025-02-18 21:03:12 +03:00

37 lines
857 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Run Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- name: Checkout репозитория
uses: actions/checkout@v4
- name: Установка Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Установка зависимостей
run: npm ci
- name: Запуск тестов
run: npm test -- --coverage
- name: Сохранение отчёта о покрытии
uses: actions/upload-artifact@v4
with:
name: coverage-report-${{ matrix.node-version }}
path: coverage/