telegram-shop/.gitea/workflows/dev.yaml
NW eae051e32b
Some checks failed
Telegram Shop Bot CI [DEV] / lint (push) Failing after 8m44s
Обновить .gitea/workflows/dev.yaml
2024-11-15 00:20:02 +00:00

45 lines
1.3 KiB
YAML

name: "Telegram Shop Bot CI [DEV]"
on:
push:
branches:
- dev
pull_request:
branches:
- dev
env:
GITEA_HOST: git.softuniq.eu
jobs:
lint:
runs-on: ubuntu-latest # Запуск на Ubuntu
steps:
- name: Check DNS Resolution
run: |
echo "Проверка DNS-резолвинга"
curl -I https://${{ env.GITEA_HOST }}
- name: Checkout code
run: |
echo "Клонируем репозиторий"
git clone https://${{ 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 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