Files
docker_lab/.github/workflows/ci.yml
vlitvintseva 7e8b6fc7a6
Some checks failed
Node.js CI / lint (push) Successful in 19s
Node.js CI / test (push) Successful in 18s
Node.js CI / build (push) Failing after 0s
fix: disable ssl4
2026-05-18 11:38:32 +03:00

55 lines
1.4 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
container: node:18-alpine
steps:
# Устанавливаем git прямо внутрь контейнера alpine
- name: Install Git
run: apk add --no-cache git
- 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: Install Git
run: apk add --no-cache git
- 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:
# На этапе сборки докера контейнер node не используется, git ставим стандартным apt, если нужен
- name: Install Git on Host
run: sudo apt-get update && sudo apt-get install -y git
- name: Clone repository
run: git clone https://iux-gitea.myddns.me/24_LitvintsevaVD/docker_lab.git .
- name: Build Docker Image
run: docker build -t docker_lab:latest .