Обновить .gitea/workflows/dev.yaml

This commit is contained in:
NW 2024-11-14 21:07:50 +00:00
parent 5eec9586b7
commit 1cabe48594

View File

@ -2,29 +2,30 @@ name: "Telegram Shop Bot CI [DEV]"
on: on:
push: push:
branches: ["dev"] branches:
- dev
pull_request: pull_request:
branches: ["dev"] branches:
- dev
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest # Запускаем на универсальной платформе runs-on: ubuntu:latest # Запуск на Ubuntu
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up Node.js 22 - name: Set up Node.js 22
run: | run: |
# Устанавливаем nvm (Node Version Manager) # Устанавливаем Node.js 22
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash curl -sL https://deb.nodesource.com/setup_22.x | sudo -E bash -
export NVM_DIR="$HOME/.nvm" sudo apt-get install -y nodejs
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 22
nvm use 22
node -v # Проверка установленной версии Node.js node -v # Проверка установленной версии Node.js
- name: Install dependencies - name: Install dependencies
run: npm install run: |
npm install
- name: Run lint - name: Run lint
run: npm run lint run: |
npm run lint