← Tất cả file code

.github/workflows/ci.yml

GitHub Actions: install, lint, test và build mỗi lần push và pull request.

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

Về công cụ này

GitHub Actions: install, lint, test và build mỗi lần push và pull request.

.github/workflows/ci.yml sẵn sàng dùng — xem nội dung, copy, hoặc tải về đúng tên file. Miễn phí, 100% trong trình duyệt.