docs: 优化 README,移除一键部署按钮,补充 GitHub Actions 部署说明 #9
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: | |
| branches: [main, master, 'refactor/**'] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| test: | |
| name: Lint + Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check (JSDoc + // @ts-check) | |
| run: npm run lint | |
| - name: Run unit tests | |
| run: npm test |