← 모든 코드 파일

.github/workflows/ci.yml

GitHub Actions: 모든 push와 pull request에서 설치·lint·테스트·빌드.

name: CI

on:
  push:
    branches: [main]
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
          cache: npm
      - run: npm ci
      - run: npm run lint --if-present
      - run: npm test --if-present
      - run: npm run build --if-present

이 도구에 대해

GitHub Actions: 모든 push와 pull request에서 설치·lint·테스트·빌드.

바로 사용할 수 있는 .github/workflows/ci.yml — 내용을 보고 복사하거나 올바른 파일명으로 다운로드하세요. 무료, 100% 브라우저에서.