From 1cabe48594cb769389daaea9ba1e97c165634b79 Mon Sep 17 00:00:00 2001 From: NW Date: Thu, 14 Nov 2024 21:07:50 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.gitea/workflows/dev.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/dev.yaml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index 0c43308..7ab55b1 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -2,29 +2,30 @@ name: "Telegram Shop Bot CI [DEV]" on: push: - branches: ["dev"] + branches: + - dev pull_request: - branches: ["dev"] + branches: + - dev jobs: lint: - runs-on: ubuntu-latest # Запускаем на универсальной платформе + runs-on: ubuntu:latest # Запуск на Ubuntu steps: - name: Checkout code uses: actions/checkout@v3 - name: Set up Node.js 22 run: | - # Устанавливаем nvm (Node Version Manager) - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash - export NVM_DIR="$HOME/.nvm" - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - nvm install 22 - nvm use 22 + # Устанавливаем 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: npm install + run: | + npm install - name: Run lint - run: npm run lint \ No newline at end of file + run: | + npm run lint \ No newline at end of file