Files
docker_lab/.github/workflows/ci.yml
vlitvintseva fab1b8df11
Some checks failed
Node.js CI / lint (push) Successful in 12s
Node.js CI / test (push) Successful in 9s
Node.js CI / build (push) Failing after 1s
fix: disable 4
2026-05-18 11:41:54 +03:00

50 lines
1.0 KiB
YAML

name: Node.js CI
on:
push:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
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 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:
- 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 .