Skip to content

Commit

Permalink
Fix coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
verkholantsev committed Mar 21, 2020
1 parent c039dfe commit e554121
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Node.js CI

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -17,11 +17,25 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn lint
- run: yarn flow
- run: yarn test
- run: yarn run build
- run: yarn run publish:coverage
- name: Install dependencies
run: yarn install

- name: Lint files
run: yarn lint

- name: Check Flow
run: yarn flow

- name: Run tests with coverage
run: yarn run coverage

- name: Run build
run: yarn run build

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

env:
CI: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint": "eslint ./**/*.js",
"flow": "flow .",
"pre-commit": "yarn run lint && yarn run flow",
"publish:coverage": "jest --coverage && cat coverage/lcov.info | coveralls",
"coverage": "jest --coverage",
"release": "np"
},
"keywords": [
Expand Down

0 comments on commit e554121

Please sign in to comment.