Skip to content

Commit

Permalink
Merge pull request #20 from recurly/coveralls
Browse files Browse the repository at this point in the history
Adds Coveralls
  • Loading branch information
dbrudner committed Jan 28, 2020
2 parents 9e90022 + 7d2b50f commit 84923bf
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on: ["push", "pull_request"]

name: Coverage

jobs:

build:
name: Coverage
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1.1.0

- name: Test
run: make test

- name: Publish coverage
uses: coverallsapp/github-action@v1.0.1
with:
path-to-lcov: ./build/reports/coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store

build
lib-dist
node_modules

Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.github
build
demo
lib
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ node_js:
cache:
directories:
- node_modules
script: make test
script: make test-ci
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
BIN = ./node_modules/.bin
PKG = lib node_modules

test: $(PKG)
Expand All @@ -21,4 +22,4 @@ node_modules: package.json
clean:
@rm -rf build lib-dist node_modules

.PHONY: clean publish test test-debug docs docs-build docs-deploy
.PHONY: clean publish test test-ci test-debug docs docs-build docs-deploy
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
collectCoverage: true,
coverageDirectory: './build/reports/coverage/',
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
transformIgnorePatterns: ['/node_modules/(?!recurly.js).+\\.js$'],
transform: {
Expand Down

0 comments on commit 84923bf

Please sign in to comment.