Skip to content

Commit

Permalink
chore: Added coverage to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfisher committed Dec 6, 2019
1 parent 8c49d60 commit 53ff941
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ jobs:

- name: Run tests
run: make tests

- name: Coverage data
run: make test-coverage
with:
github-token: ${{ secrets.github_token }}
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
help:
@echo "clean Clean up any build files etc"
@echo "install Install the appropriate packages etc"
@echo "lint Lint the code"
@echo "tests Run the tests"
@echo "clean Clean up any build files etc"
@echo "install Install the appropriate packages etc"
@echo "lint Lint the code"
@echo "tests Run the tests"
@echo "test-coverage Run the tests and build coverage data"

clean:
rm -rf ./node_modules
Expand All @@ -15,3 +16,6 @@ lint:

tests:
npm run test

test-coverage:
npm run coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"scripts": {
"test": "./node_modules/.bin/jest",
"lint": "./node_modules/.bin/eslint .",
"coverage": "./node_modules/.bin/jest --collectCoverage=true"
"coverage": "./node_modules/.bin/jest --collectCoverage=true",
"release": "standard-version"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 53ff941

Please sign in to comment.