6 Commits

Author SHA1 Message Date
NW
af2f0361bc Удалить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [PROD] / lint (push) Has been cancelled
2024-11-15 02:14:30 +00:00
NW
b8b9d27738 Удалить .gitea/workflows/demo.yaml
Some checks are pending
Telegram Shop Bot CI [PROD] / lint (push) Waiting to run
2024-11-15 02:14:14 +00:00
NW
798df46c80 Обновить package.json
Some checks failed
Telegram Shop Bot CI [PROD] / lint (push) Has been cancelled
2024-11-15 00:02:44 +00:00
NW
fc9ddac1c3 Обновить .gitea/workflows/demo.yaml
Some checks failed
Telegram Shop Bot CI [PROD] / lint (push) Failing after 51s
2024-11-14 21:28:42 +00:00
NW
32a99119a1 Обновить .gitea/workflows/dev.yaml
Some checks failed
Telegram Shop Bot CI [PROD] / lint (push) Has been cancelled
2024-11-14 21:27:39 +00:00
NW
1466d9352e Обновить .gitea/workflows/prod.yaml
Some checks failed
Telegram Shop Bot CI [PROD] / lint (push) Has been cancelled
2024-11-14 21:26:31 +00:00
4 changed files with 28 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 +0,0 @@
name: "Telegram Shop Bot CI [DEV]"
on:
push:
branches: ["dev"]
pull_request:
branches: ["dev"]
jobs:
lint:
runs-on: node:22-alpine
steps:
- name: Checkout code
uses: actions/checkout@v3

View File

@@ -1,13 +1,33 @@
name: "Telegram Shop Bot CI [PROD]"
on:
push:
branches: ["prod"]
branches:
- prod
pull_request:
branches: ["prod"]
branches:
- prod
jobs:
lint:
runs-on: node:22-alpine
runs-on: ubuntu-latest # Запуск на Ubuntu
steps:
- name: Checkout code
uses: actions/checkout@v3
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

@@ -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"