build(deps): bump koa-router from 13.1.1 to 14.0.0 in /examples #61
Workflow file for this run
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, develop, master ] | |
| pull_request: | |
| branches: [ main, develop, master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x, 24.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Install dependencies (workspace, frozen lockfile) | |
| run: pnpm install --frozen-lockfile | |
| - name: Run code format check | |
| run: pnpm run check | |
| - name: Build project | |
| run: pnpm run build | |
| - name: Build adapter packages | |
| # 子包 (@erest/express|koa|leizmweb|gen) 的 dist/ 已 gitignore, | |
| # examples 测试通过 workspace 链接 import 它们,必须先构建才能解析入口。 | |
| run: pnpm run build:packages | |
| - name: Run tests with coverage | |
| run: pnpm run test:cov | |
| - name: Run examples tests | |
| run: pnpm --filter erest-example test | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| if: matrix.node-version == '20.x' | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: yourtion/node-erest |