Обновить .gitea/workflows/dev.yaml
This commit is contained in:
parent
82132c7466
commit
f737d46802
@ -1,4 +1,5 @@
|
|||||||
name: "Telegram Shop Bot CI [DEV]"
|
name: "Telegram Shop Bot CI [DEV]"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["dev"]
|
branches: ["dev"]
|
||||||
@ -7,7 +8,23 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: node:22-alpine
|
runs-on: ubuntu-latest # Запускаем на универсальной платформе
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
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 -v # Проверка установленной версии Node.js
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Run lint
|
||||||
|
run: npm run lint
|
Loading…
Reference in New Issue
Block a user