Skip to content

Commit

Permalink
chore: Enable auto coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan van Rooij committed Apr 18, 2020
1 parent e6ac07d commit 88a90c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/npm-test.yml
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- master
- development
pull_request:

jobs:
Expand All @@ -17,6 +18,11 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
- run: npm run coverage
- name: Install depencencies
run: npm ci
- name: Run tests
run: npm test
- name: Send data to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions jest.config.js
Expand Up @@ -5,5 +5,7 @@ module.exports = {
testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
testPathIgnorePatterns: ['/dist/', '/node_modules/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
testEnvironment: 'node'
}
testEnvironment: 'node',
collectCoverage: true,
coverageReporters: ['text', 'text-summary', 'lcov']
}

0 comments on commit 88a90c0

Please sign in to comment.