diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index c56b602..73dcc31 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -1,13 +1,33 @@ name: "Telegram Shop Bot CI [DEV]" + on: push: - branches: ["dev"] + branches: + - dev pull_request: - branches: ["dev"] + branches: + - dev jobs: lint: - runs-on: node:22-alpine + runs-on: ubuntu-latest # Запуск на Ubuntu steps: - name: Checkout code - uses: actions/checkout@v3 \ No newline at end of file + 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 \ No newline at end of file