Merge pull request #395 from alibaba/chore/action-cov-pkg

Chore/action cov pkg
This commit is contained in:
林熠 2022-04-27 16:17:23 +08:00 committed by GitHub
commit 2dfdba3399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

27
.github/workflows/cov packages.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: lint & test
on:
pull_request:
paths:
- 'packages/**'
- '!packages/**.md'
jobs:
cov-designer:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: install
run: npm i && npm run setup:skip-build
- uses: ArtiomTr/jest-coverage-report-action@v2
with:
working-directory: packages/designer
test-script: npm test -- --jest-ci --jest-json --jest-coverage --jest-testLocationInResults --jest-outputFile=report.json
skip-step: install