Skip to content

ci: update nodejs-compatibility-test.yml #177

ci: update nodejs-compatibility-test.yml

ci: update nodejs-compatibility-test.yml #177

Workflow file for this run

name: ci
on:
push:
branches: [main, dev]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v2
- name: 安装 pnpm
run: npm i -g pnpm
shell: sh
- name: 安装依赖
run: pnpm i
shell: sh
- name: 构建
run: npm run build
shell: sh
- name: 测试构建包
run: npm run test:pkg
shell: sh
- name: 测试源码并生成覆盖率
run: npm run coverage
shell: sh
- name: 上传测试报告
run:
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.codecov_token }}
-Z -F unittests
shell: bash