86133 | aaa3f5d | 2025-04-20 21:33:29 +0800 | [diff] [blame] | 1 | name: coverage CI |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | permissions: |
| 6 | contents: read |
| 7 | |
| 8 | jobs: |
| 9 | build: |
| 10 | runs-on: ubuntu-latest |
| 11 | steps: |
| 12 | - uses: actions/checkout@v1 |
| 13 | - name: Use Node.js 16.x |
| 14 | uses: actions/setup-node@v1 |
| 15 | with: |
| 16 | node-version: 16.x |
| 17 | - run: echo ${{github.ref}} |
| 18 | - run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7 |
| 19 | - run: pnpm config set store-dir ~/.pnpm-store |
| 20 | - run: pnpm install --strict-peer-dependencies=false |
| 21 | - run: yarn run test:coverage |
| 22 | env: |
| 23 | CI: true |
| 24 | PROGRESS: none |
| 25 | NODE_ENV: test |
| 26 | NODE_OPTIONS: --max_old_space_size=4096 |
| 27 | - run: bash <(curl -s https://codecov.io/bash) |