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
4 changed files with 28 additions and 32 deletions

View File

@@ -1,13 +1,33 @@
name: "Telegram Shop Bot CI [DEMO]"
on:
push:
branches: ["demo"]
branches:
- demo
pull_request:
branches: ["demo"]
branches:
- demo
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

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