Skip to content

feat(config): 重构配置管理,添加更新配置功能并实现深度冻结 #26

feat(config): 重构配置管理,添加更新配置功能并实现深度冻结

feat(config): 重构配置管理,添加更新配置功能并实现深度冻结 #26

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Auto-fix linter issues
if: github.event_name == 'push' && github.actor != 'github-actions[bot]'
run: |
bun run lint --fix
if ! git diff --quiet; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "chore(ci): auto-fix lint"
git push
fi
- name: Run linter
run: bun run lint:all
- name: Run type check
run: bun run typecheck
- name: Run tests
run: bun test
- name: Build
run: bun run build