Skip to content

Commit

Permalink
upgrade test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbFlying committed May 4, 2024
1 parent 6a29156 commit a99fed0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# 下载仓库源码
# download source code
- name: Checkout
uses: actions/checkout@master

# 安装依赖 & 运行测试生成测试覆盖率报告
- name: Install pnpm
run: npm install -g pnpm

- name: Install and test & coverage
run: |
pnpm install
pnpm i --frozen-lockfile
npm test
# 上传测试覆盖率报告到 codecov
- name: Upload coverage to Codecov
# 使用codecov官方提供的action
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit a99fed0

Please sign in to comment.