Базовый workflow: on: push/pull_request. jobs: test: runs-on: ubuntu-latest. steps: checkout → setup-node (node-version: 20) → npm ci → npm run lint → npm run test. Кэш: cache: npm с key: ${{ hashFiles("**/package-lock.json") }}. Сервисы для integration тестов: services: postgres: image: postgres:16, env vars. Деплой: отдельный job с needs: [test], только на main branch. Секреты в GitHub Secrets. Docker build & push: docker/build-push-action. SSH деплой или kubectl apply.
Как настроить GitHub Actions CI/CD для Node.js?
Middle
346 просмотровAFK Offer AI
Как работает strict mode в TypeScript?