Files
layui/.github/workflows/ci.yml
renovate[bot] f59eede445 chore(deps): update actions/checkout action to v6 (#2979)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-06 09:35:59 +08:00

39 lines
730 B
YAML

name: CI
on:
pull_request:
push:
branches:
- main
- '*.x-stable'
jobs:
lint:
name: Lint code
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Check formatting with Prettier
run: |
npx prettier --write --log-level=warn .
git --no-pager diff --exit-code
- name: Lint code with ESLint
run: npx eslint .
# 串行运行测试
- name: Run tests with Jest
run: npx jest --ci --runInBand