2024-11-14 14:31:29 +00:00
|
|
|
name: "Telegram Shop Bot CI [DEV]"
|
2024-11-14 21:27:39 +00:00
|
|
|
|
2024-11-14 14:31:29 +00:00
|
|
|
on:
|
|
|
|
push:
|
2024-11-14 21:27:39 +00:00
|
|
|
branches:
|
|
|
|
- dev
|
2024-11-14 14:31:29 +00:00
|
|
|
pull_request:
|
2024-11-14 21:27:39 +00:00
|
|
|
branches:
|
|
|
|
- dev
|
2024-11-14 14:31:29 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
2024-11-14 21:27:39 +00:00
|
|
|
runs-on: ubuntu-latest # Запуск на Ubuntu
|
2024-11-14 14:31:29 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2024-11-14 21:27:39 +00:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up Node.js 22
|
|
|
|
run: |
|
|
|
|
echo "Устанавливаем Node.js 22"
|
|
|
|
curl -sL https://deb.nodesource.com/setup_22.x | sudo -E bash -
|
|
|
|
sudo apt-get install -y nodejs
|
|
|
|
node -v # Проверка установленной версии Node.js
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
echo "Устанавливаем зависимости"
|
|
|
|
npm install
|
|
|
|
|
|
|
|
- name: Run lint
|
|
|
|
run: |
|
|
|
|
echo "Запуск линтинга"
|
|
|
|
npm run lint
|