From 2e2b25a5ee5bef7401ce2061335eb261e5ce30ac Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Wed, 2 Aug 2023 23:48:43 +0200 Subject: [PATCH] Upload code coverage statistics to Coveralls.io --- .github/workflows/test.yml | 3 +++ .gitignore | 1 + package.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c48013be..5e76128c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,3 +29,6 @@ jobs: - name: Test run: npm test + + - name: Coveralls + uses: coverallsapp/github-action@v2 diff --git a/.gitignore b/.gitignore index 74f855d3..1dc0fcfb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/coverage /dist /node_modules /site diff --git a/package.json b/package.json index 7f6fa2c9..85e645fe 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "build": "webpack --mode=production", "copy": "cp \"src/docs/_assets/generated/reactui.css\" dist & cp \"src/docs/_assets/generated/reactui.js\" dist", "eslint": "eslint --ext js,jsx src", - "jest": "jest src", + "jest": "jest src --coverage", "lint": "npm run eslint && npm run markdownlint && npm run stylelint", "markdownlint": "markdownlint-cli2 \"CONTRIBUTING.md\" \"README.md\" \"RELEASING.md\" \"src/**/*.md\"", "postbuild": "npm run copy",