Files
Микаэл Оганесян d96c152ae3
Some checks failed
CI / checks (push) Has been cancelled
add new functional
2026-04-09 00:26:47 +03:00

45 lines
1.1 KiB
YAML
Raw Permalink 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.
# Gitea Actions: линт, unit-тесты (Vitest/jsdom), production build.
# Нужны: включённые Actions в репозитории и зарегистрированный act_runner.
# Если шаги с `uses:` не резолвятся, в настройках Gitea укажите прокси GitHub Actions
# или замените на полные URL, например: https://github.com/actions/checkout@v4
name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
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
- name: Lint
run: npm run lint
- name: Unit tests
run: npm run test -- --watch=false
- name: Production build
run: npm run build