diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9d3746a4c5b92..84c68355a4ea8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,3 +34,6 @@ jobs: run: | npm install npm run test + + - name: Code Coverage + uses: codecov/codecov-action@v1 diff --git a/.gitignore b/.gitignore index 069f438d5ddb7..00b485934afb0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .env node_modules package-lock.json +coverage diff --git a/.vercelignore b/.vercelignore index be9b2aae0a7fe..3a9f5413b9808 100644 --- a/.vercelignore +++ b/.vercelignore @@ -1,2 +1,3 @@ .env -package-lock.json \ No newline at end of file +package-lock.json +coverage \ No newline at end of file diff --git a/package.json b/package.json index 4a95aa852830e..c3a7935dfd607 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Dynamically generate stats for your github readmes", "main": "index.js", "scripts": { - "test": "jest", + "test": "jest --coverage", "test:watch": "jest --watch" }, "author": "Anurag Hazra", diff --git a/readme.md b/readme.md index 0719d2e5f6467..3140b13868b79 100644 --- a/readme.md +++ b/readme.md @@ -8,6 +8,9 @@ Tests Passing + + + Issues