27 Commits

Author SHA1 Message Date
NW
c257546de2 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 2m27s
2024-11-15 20:16:46 +00:00
NW
325c216d69 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 15s
2024-11-15 19:45:32 +00:00
NW
a1d4a7f157 Удалить .gitea/workflows/prod.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Has been cancelled
2024-11-15 02:13:50 +00:00
NW
9e9f6cb076 Удалить .gitea/workflows/demo.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Has been cancelled
2024-11-15 02:13:24 +00:00
NW
220d2a2b4b Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 16m7s
2024-11-15 00:32:50 +00:00
NW
73cf4b339e Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Has been cancelled
2024-11-15 00:32:22 +00:00
NW
eae051e32b Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 8m44s
2024-11-15 00:20:02 +00:00
NW
2d36bc514f Обновить package.json
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 6m14s
Telegram Shop Bot CI [DEMO] / lint (pull_request) Failing after 1m5s
2024-11-14 23:52:28 +00:00
NW
7fedf0c6e8 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 5m41s
2024-11-14 23:44:41 +00:00
NW
ab65e53659 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 15s
2024-11-14 23:43:02 +00:00
NW
ece9fdcc20 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 44s
2024-11-14 23:39:52 +00:00
NW
e44cbc0189 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 42s
2024-11-14 23:39:10 +00:00
NW
ff0c11e120 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 53s
2024-11-14 23:38:07 +00:00
NW
70b64568f0 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 47s
2024-11-14 23:36:53 +00:00
NW
dcaff9588d Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 21s
2024-11-14 23:33:48 +00:00
NW
0f53b7ac33 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / build-and-push (push) Failing after 11s
2024-11-14 23:30:36 +00:00
NW
3de8a706b9 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 16s
2024-11-14 23:24:14 +00:00
NW
e966c09a32 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 8s
2024-11-14 23:04:20 +00:00
NW
7f51666ef4 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 57s
2024-11-14 23:01:06 +00:00
NW
56659356c4 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 3m16s
2024-11-14 22:49:11 +00:00
NW
43be131213 Обновить .gitea/workflows/dev.yaml
Some checks are pending
Telegram Shop Bot CI [DEV] / lint (push) Waiting to run
2024-11-14 22:30:47 +00:00
NW
f4dcbf4693 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 23s
2024-11-14 22:27:01 +00:00
NW
9f853158e7 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 23s
2024-11-14 22:24:18 +00:00
NW
78fca43358 Обновить .gitea/workflows/prod.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 40s
2024-11-14 21:25:55 +00:00
NW
0fffb0fc0e Обновить .gitea/workflows/demo.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Has been cancelled
2024-11-14 21:25:15 +00:00
NW
be8816bad7 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 48s
2024-11-14 21:23:42 +00:00
NW
ebb9b5bbb1 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [DEV] / build-and-push (push) Has been cancelled
2024-11-14 21:22:41 +00:00
4 changed files with 47 additions and 32 deletions

View File

@@ -1,13 +0,0 @@
name: "Telegram Shop Bot CI [DEMO]"
on:
push:
branches: ["demo"]
pull_request:
branches: ["demo"]
jobs:
lint:
runs-on: node:22-alpine
steps:
- name: Checkout code
uses: actions/checkout@v3

View File

@@ -1,13 +1,52 @@
name: "Telegram Shop Bot CI [DEV]"
on:
push:
branches: ["dev"]
branches:
- dev
pull_request:
branches: ["dev"]
branches:
- dev
env:
GITEA_HOST: 192.168.2.29:3000
jobs:
lint:
runs-on: node:22-alpine
runs-on: ubuntu-latest # Запуск на Ubuntu
steps:
- name: Check DNS Resolution
run: |
echo "Проверка DNS-резолвинга"
curl -I http://${{ env.GITEA_HOST }}
- name: Checkout code
uses: actions/checkout@v3
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

View File

@@ -1,13 +0,0 @@
name: "Telegram Shop Bot CI [PROD]"
on:
push:
branches: ["prod"]
pull_request:
branches: ["prod"]
jobs:
lint:
runs-on: node:22-alpine
steps:
- name: Checkout code
uses: actions/checkout@v3

View File

@@ -4,7 +4,8 @@
"type": "module",
"scripts": {
"start": "node src/index.js",
"dev": "nodemon src/index.js"
"dev": "nodemon src/index.js",
"lint": "eslint ."
},
"dependencies": {
"axios": "^1.7.7",
@@ -18,7 +19,8 @@
"node-telegram-bot-api": "^0.64.0",
"sqlite3": "^5.1.6",
"tiny-secp256k1": "^2.2.3",
"tronweb": "^5.3.2"
"tronweb": "^5.3.2",
"eslint": "^8.0.0"
},
"devDependencies": {
"nodemon": "^3.0.2"