From 4149a6cce8be2eb11b9cf628f6c29095105ffcfe Mon Sep 17 00:00:00 2001 From: Rafael Bardini Date: Sun, 5 Jul 2020 15:43:26 +0200 Subject: [PATCH] Collect coverage - Add Coverage step to workflow - Generate JSON coverage report - Ignore coverage folder --- .github/workflows/main.yml | 5 ++++- .gitignore | 1 + .prettierignore | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5074752..4ae6383 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,4 +21,7 @@ jobs: run: npm run lint - name: Test - run: npm test + run: npm test -- --coverage-report=json + + - name: Coverage + uses: codecov/codecov-action@v1 diff --git a/.gitignore b/.gitignore index 809b393..25e8bbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .nyc_output +coverage node_modules npm-debug.log diff --git a/.prettierignore b/.prettierignore index b56c82c..bf0acc4 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,3 @@ +.nyc_output +coverage tap-snapshots