Files
docker_lab/.github/workflows/ci.yml
vlitvintseva 58ab41eec4
Some checks failed
Node.js CI / lint (push) Failing after 4s
Node.js CI / test (push) Has been skipped
Node.js CI / build (push) Has been skipped
fix: disable ssl3
2026-05-18 11:34:03 +03:00

46 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Node.js CI
on:
push:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
# Заставляем задачу выполняться сразу внутри контейнера с Node.js 18
container: node:18-alpine
steps:
- name: Clone repository
run: git clone https://iux-gitea.myddns.me/24_LitvintsevaVD/docker_lab.git .
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint
test:
runs-on: ubuntu-latest
needs: lint
container: node:18-alpine
steps:
- name: Clone repository
run: git clone https://iux-gitea.myddns.me/24_LitvintsevaVD/docker_lab.git .
- name: Install dependencies
run: npm ci
- name: Run Tests
run: npm run test
build:
runs-on: ubuntu-latest
needs: test
steps:
- name: Clone repository
run: git clone https://iux-gitea.myddns.me/24_LitvintsevaVD/docker_lab.git .
# Здесь контейнер не нужен, так как собираем сам Docker-образ
- name: Build Docker Image
run: docker build -t docker_lab:latest .