From ed3ddcf5c942a8e78e1f247e41d4159da97e75a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LeoYuan=20=E8=A2=81=E5=8A=9B=E7=9A=93?= Date: Wed, 27 Apr 2022 15:59:28 +0800 Subject: [PATCH] feat: add code coverage action --- .github/workflows/cov packages.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/cov packages.yml diff --git a/.github/workflows/cov packages.yml b/.github/workflows/cov packages.yml new file mode 100644 index 000000000..8949a203e --- /dev/null +++ b/.github/workflows/cov packages.yml @@ -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 \ No newline at end of file