mirror of
https://github.com/groldsf/obsidian_check_plugin.git
synced 2026-07-22 12:00:31 +00:00
37 lines
857 B
YAML
37 lines
857 B
YAML
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/
|