← ClaudeAtlas

cicd-templatelisted

Generate GitHub Actions pipeline config จาก tech stack ของ project — ครอบคลุม test, lint, build, deploy stages
witchwasin/Axiom-PMO · ★ 3 · DevOps & Infrastructure · score 74
Install: claude install-skill witchwasin/Axiom-PMO
# PMO Skill: CI/CD Template > **Purpose:** สร้าง CI/CD pipeline config ให้แต่ละ project > PM กรอก tech stack → AI generate GitHub Actions workflow ที่พร้อมใช้ --- ## 1. Prerequisites - Tech stack info (language, framework, DB, package manager) - Coding Standards (ถ้ามี — เพื่อ generate linter config ที่ตรงกัน) - Test framework (jest, vitest, pytest, go test) --- ## 2. Pipeline Stages ``` ┌─────────┐ ┌──────┐ ┌───────��� ┌────────┐ ┌────────┐ │ Install │ → │ Lint │ → │ Test │ → │ Build │ → │ Deploy │ └─────────┘ └──────┘ └───────┘ └���───────┘ └────────┘ ``` ### Stage Details | Stage | What | Fail Action | |-------|------|-------------| | **Install** | Install dependencies | Block pipeline | | **Lint** | Run linter (ESLint, Ruff, golangci-lint) | Block pipeline | | **Test** | Run unit + integration tests, coverage report | Block if < 80% | | **Build** | Build application, Docker image | Block pipeline | | **Deploy** | Deploy to staging/production | Manual approval for production | --- ## 3. Templates by Tech Stack ### 3.1 Node.js / Next.js ```yaml # .github/workflows/ci.yml name: CI Pipeline on: push: branches: [main, develop] pull_request: branches: [main] jobs: lint-and-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - run: npm ci - run: npm run lint - run: npm run test -- --coverag