mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
chore: 尝试增加 codecov action
This commit is contained in:
parent
916fa3c18f
commit
ffb22b0aad
12
.github/workflows/gh-pages.yml
vendored
12
.github/workflows/gh-pages.yml
vendored
@ -25,9 +25,19 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: build
|
- name: Generate coverage report
|
||||||
run: |
|
run: |
|
||||||
npm i --legacy-peer-deps
|
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
|
sh deploy-gh-pages.sh
|
||||||
- name: Deploy 🚀
|
- name: Deploy 🚀
|
||||||
uses: JamesIves/github-pages-deploy-action@3.7.1
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||||
|
Loading…
Reference in New Issue
Block a user