diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fe43feb9..fa032d10 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,5 +13,7 @@ jobs: - name: lint run: npm run lint && npm run tsc - - name: test - run: npm run test + - name: test + run: npm run test:coverage + - name: Generate coverage + run: bash <(curl -s https://codecov.io/bash) diff --git a/package.json b/package.json index 3e2855fa..3bbe8905 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "site_build": "dumi build", "doc": "cd ./example && umi dev", "test": "umi-test", + "test:coverage": "umi-test --coverage", "tsc": "tsc -p tsconfig-check.json" }, "husky": {