mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
update ci
1. add coverage comment action 2. remove build due to it was executed after install dependencies
This commit is contained in:
parent
39f3517d50
commit
df5081917d
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -16,6 +16,9 @@ jobs:
|
||||
- name: install dependencies
|
||||
run: yarn install
|
||||
- name: run test
|
||||
run: yarn run test:ci
|
||||
- name: run build
|
||||
run: yarn run prepublish
|
||||
uses: mattallty/jest-github-action@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
test-command: "yarn test:ci"
|
||||
coverage-comment: ${{ github.event.name == 'pull_request'}}
|
||||
|
Loading…
Reference in New Issue
Block a user