본문으로 바로 가기
kitlocal.dev

CI/CD 파이프라인 생성기

로컬에서 실행

100% 브라우저에서 처리됩니다. 입력과 출력이 기기 밖으로 나가지 않습니다.

GitHub Actions와 GitLab CI 파이프라인 설정을 생성합니다.

파이프라인 실행 단계
GitHub Actions 워크플로 YAML
name: Node.js Pipeline

on:
  push:
    branches: ["main", "develop"]
  pull_request:
    branches: ["main", "develop"]

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: ["18.x"]

    steps:
    - uses: actions/checkout@v4
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v4
      with:
        node-version: ${{ matrix.node-version }}
        cache: 'npm'
    - name: Execute Clean Installation
      run: npm ci
    - name: Run Core Test Boundaries
      run: npm test
    - name: Compile Pipeline Release Target
      run: npm run build
구성을 로컬 .github/workflows/main.yml에 저장하세요