chore: 尝试增加 codecov action

This commit is contained in:
吴多益 2022-02-15 14:17:27 +08:00 committed by GitHub
parent 916fa3c18f
commit ffb22b0aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,9 +25,19 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: build
- name: Generate coverage report
run: |
npm i --legacy-peer-deps
npm run coverage
- uses: codecov/codecov-action@v2
with:
directory: ./coverage
files: ./clover.xml
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
- name: build gh-pages
run: |
sh deploy-gh-pages.sh
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1