This repository was archived by the owner on Jan 28, 2026. It is now read-only.
fix: 无法正确读取默认值的问题 #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| - 'docs/**' | |
| branches: | |
| - main | |
| - dev | |
| - 'release/**' | |
| - 'feature/**' | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Use Node.js 24 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| shell: bash | |
| - name: Lint | |
| run: npm run lint | |
| shell: bash | |
| - name: Type check | |
| run: npm run typecheck | |
| shell: bash | |
| - name: Test with coverage | |
| run: npm run test:coverage | |
| shell: bash | |
| - name: Build | |
| run: npm run build | |
| shell: bash | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: coverage | |
| path: | | |
| coverage/lcov.info | |
| reports/junit.xml |