From ffac8f8d39e671f8097601ce5c81ad02ae3e2df7 Mon Sep 17 00:00:00 2001 From: Bairui Su Date: Tue, 30 Jan 2024 14:29:12 +0800 Subject: [PATCH] fix(ci): add update coverall action (#6072) --- .github/workflows/build.yml | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1df05eefbf..970b76b4f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,12 @@ jobs: npm install npm run ci + - name: Update coverall + if: ${{ success() }} + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Upload blob report to GitHub Actions Artifacts if: always() uses: actions/upload-artifact@v3 diff --git a/package.json b/package.json index 619336450f..8e81bda0aa 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "size": "limit-size", "lint": "eslint ./src ./__tests__ && prettier ./src ./__tests__ --check ", "fix": "eslint ./src ./__tests__ --fix && prettier ./src ./__tests__ --write ", - "test": "cross-env TZ=Asia/Shanghai node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__ --logHeapUsage", + "test": "cross-env TZ=Asia/Shanghai node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__ --coverage --logHeapUsage", "test:unit": "cross-env TZ=Asia/Shanghai node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__/unit/ --coverage --logHeapUsage", "test:integration": "cross-env TZ=Asia/Shanghai node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__/integration/ --coverage --logHeapUsage", "preview": "vite preview",