diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3d587860e..91c8537a3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,8 +28,11 @@ jobs: - name: Build run: npm run build - - name: Test - run: npm run test + - name: Test with coverage report + run: npm run coverage + + - name: Upload to codecov.io + uses: codecov/codecov-action@v2 eslint: name: eslint diff --git a/package.json b/package.json index e51a33772..7b5c0e932 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "debug": "cd packages/cli && npm run debug", "test": "npm run test --silent --workspaces --if-present", "test:only": "npm run test --silent --workspaces --if-present", - "coverage": "nyc npm run test", + "coverage": "nyc --reporter=lcov npm run test", "lint": "npm run lint --silent --workspaces --if-present", "format": "prettier --write . && npm run format --silent --workspaces --if-present", "publish": "npm publish --workspaces",