update ci

1. add coverage comment action
2. remove build due to it was executed after install dependencies
This commit is contained in:
Sczlog 2021-09-23 11:11:48 +08:00
parent 39f3517d50
commit df5081917d

View File

@ -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'}}