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

45 lines
1.2 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
uses: actions/checkout@v3
with:
repository: https://${{ env.GITEA_HOST }}/Telegram-Market/telegram-shop
ref: 3b112d891e4c1f06c8f1a4141d290705712bb4d8
path: /workspace/Telegram-Market/telegram-shop
- 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