6 Commits
dev ... demo

Author SHA1 Message Date
NW
5e8a21ffa0 Удалить .gitea/workflows/prod.yaml
Some checks failed
Telegram Shop Bot CI [DEMO] / lint (push) Has been cancelled
2024-11-15 02:15:19 +00:00
NW
533296c471 Удалить .gitea/workflows/dev.yaml
Some checks are pending
Telegram Shop Bot CI [DEMO] / lint (push) Waiting to run
2024-11-15 02:15:05 +00:00
NW
e90a361d4b Обновить package.json
Some checks failed
Telegram Shop Bot CI [DEMO] / lint (push) Failing after 56s
2024-11-15 00:02:24 +00:00
NW
3b112d891e Обновить .gitea/workflows/demo.yaml
Some checks failed
Telegram Shop Bot CI [DEMO] / lint (push) Failing after 1m26s
2024-11-14 21:28:56 +00:00
NW
43d84efc3e Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEMO] / lint (push) Has been cancelled
2024-11-14 21:27:58 +00:00
NW
30a9b12e60 Обновить .gitea/workflows/prod.yaml
Some checks are pending
Telegram Shop Bot CI [DEMO] / lint (push) Waiting to run
2024-11-14 21:26:17 +00:00
2 changed files with 33 additions and 52 deletions

View File

@@ -0,0 +1,33 @@
name: "Telegram Shop Bot CI [DEMO]"
on:
push:
branches:
- demo
pull_request:
branches:
- demo
jobs:
lint:
runs-on: ubuntu-latest # Запуск на Ubuntu
steps:
- name: Checkout code
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

View File

@@ -1,52 +0,0 @@
name: "Telegram Shop Bot CI [DEV]"
on:
push:
branches:
- dev
pull_request:
branches:
- dev
env:
GITEA_HOST: 192.168.2.29:3000
jobs:
lint:
runs-on: ubuntu-latest # Запуск на Ubuntu
steps:
- name: Check DNS Resolution
run: |
echo "Проверка DNS-резолвинга"
curl -I http://${{ env.GITEA_HOST }}
- name: Checkout code
run: |
echo "Клонируем репозиторий"
git clone http://${{ env.GITEA_HOST }}/Telegram-Market/telegram-shop.git /workspace/Telegram-Market/telegram-shop
cd /workspace/Telegram-Market/telegram-shop
git checkout 2d36bc514fa832c8c6b538631537dfb88a1ac6ca
- name: Set up Node.js 22
run: |
echo "Устанавливаем Node.js 22"
curl -sL http://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: Initialize ESLint configuration
run: |
echo "Инициализируем конфигурацию ESLint"
if [ ! -f .eslintrc.json ]; then
npm init @eslint/config
fi
- name: Run lint
run: |
echo "Запуск линтинга"
npm run lint