diff --git a/.github/workflows/jest-coverage.yml b/.github/workflows/jest-coverage.yml index 670116c..7eb71e7 100644 --- a/.github/workflows/jest-coverage.yml +++ b/.github/workflows/jest-coverage.yml @@ -1,18 +1,17 @@ name: jest-coverage -run-name: ${{ github.actor }} -on: ["push", "pull_request"] +run-name: ${{ github.actor }} update coverage data。 +on: + [push, pull_request]: + branches: + - master + - feature-action jobs: - build: - name: Build + upload-coverage: + name: upload-coverage runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - - name: Use Node.js 16.14 - uses: actions/setup-node@v3 - with: - node-version: 16.14 - - - name: Coveralls - uses: coverallsapp/github-action@v2 + - name: Check out the repository to the runner + uses: actions/checkout@v4 + - name: Coveralls + uses: coverallsapp/github-action@v2 diff --git a/README.md b/README.md index 928410c..a4acd25 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![NPM version][npm-image]][npm-url] ![](https://img.shields.io/badge/build-passing-green) +[![Coverage Status](https://coveralls.io/repos/github/beezen/nucm/badge.svg?branch=feature-action)](https://coveralls.io/github/beezen/nucm?branch=feature-action) `nucm` can help you manage NPM account information quickly and easily. diff --git a/README_CN.md b/README_CN.md index beebeda..8283622 100644 --- a/README_CN.md +++ b/README_CN.md @@ -2,6 +2,7 @@ [![NPM version][npm-image]][npm-url] ![](https://img.shields.io/badge/build-passing-green) +[![Coverage Status](https://coveralls.io/repos/github/beezen/nucm/badge.svg?branch=feature-action)](https://coveralls.io/github/beezen/nucm?branch=feature-action) `nucm` 能帮你快速轻松地管理 NPM 账户信息。