Skip to content

Commit

Permalink
Adds coverage report to travis CI job
Browse files Browse the repository at this point in the history
- Removes GitHub coverage report action
  • Loading branch information
chrissrogers committed Jun 22, 2020
1 parent e91517e commit a322a04
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 32 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:

- stage: Unit Test
name: jest
script: make test
script: make test-ci
26 changes: 16 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
BIN = ./node_modules/.bin
PKG = lib node_modules
bin = ./node_modules/.bin
jest = $(bin)/jest
coveralls = $(bin)/coveralls
pkg = lib node_modules

test: $(PKG)
test: $(pkg)
@npm test
test-debug: $(PKG)
@node --inspect-brk node_modules/.bin/jest --runInBand --forceExit
test-watch: $(PKG)
test-debug: $(pkg)
@node --inspect-brk $(jest) --runInBand --forceExit
test-watch: $(pkg)
@npm test -- --watchAll
test-types: $(PKG)
test-types: $(pkg)
@npm run test:types

docs: $(PKG)
test-ci: test-cov-ci
test-cov-ci: test
@cat ./build/reports/coverage/lcov.info | $(coveralls)

docs: $(pkg)
@npm run storybook
docs-build: $(PKG)
docs-build: $(pkg)
@npm run build-storybook

publish: lib clean node_modules
Expand All @@ -24,4 +30,4 @@ node_modules: package.json
clean:
@rm -rf build lib-dist node_modules

.PHONY: clean publish test test-ci test-debug docs docs-build docs-deploy test-types
.PHONY: clean publish test test-ci test-debug docs docs-build docs-deploy test-types test-ci test-cov-ci
28 changes: 27 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@storybook/react": "^5.3.18",
"@testing-library/react-hooks": "^3.2.1",
"babel-loader": "^8.1.0",
"coveralls": "^3.1.0",
"dtslint": "^3.5.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
Expand Down

0 comments on commit a322a04

Please sign in to comment.