Files
docker_lab/.github/workflows/ci.yml
vlitvintseva 03bc047b2c
Some checks failed
Node.js CI / lint (push) Failing after 3s
Node.js CI / test (push) Has been skipped
Node.js CI / build (push) Has been skipped
fix: disable ssl
2026-05-18 11:22:33 +03:00

44 lines
913 B
YAML

name: Node.js CI
on:
push:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Отключаем проверку SSL при скачивании кода
set-safe-directory: true
env:
GIT_SSL_NO_VERIFY: "true"
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run lint
test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
env:
GIT_SSL_NO_VERIFY: "true"
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run test
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
env:
GIT_SSL_NO_VERIFY: "true"
- run: docker build -t docker_lab:latest .