From 78fca43358dbc6de4a99754d1a65d45aeb00b10a Mon Sep 17 00:00:00 2001 From: NW Date: Thu, 14 Nov 2024 21:25:55 +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/prod.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/prod.yaml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/prod.yaml b/.gitea/workflows/prod.yaml index 429055f..4c00d9f 100644 --- a/.gitea/workflows/prod.yaml +++ b/.gitea/workflows/prod.yaml @@ -1,13 +1,33 @@ name: "Telegram Shop Bot CI [PROD]" + on: push: - branches: ["prod"] + branches: + - prod pull_request: - branches: ["prod"] + branches: + - prod 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