Github Action: Coveralls (#298)

* Create coveralls.yml

* Update .travis.yml

* Update package.json

* Update coveralls.yml

* Update coveralls.yml

* Update coveralls.yml

* Update coveralls.yml
This commit is contained in:
Ricardo Ambrogi
2020-02-26 08:02:42 +01:00
committed by GitHub
parent a87b109f63
commit 6b45af1cdb
3 changed files with 36 additions and 3 deletions

35
.github/workflows/coveralls.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
on: ["push", "pull_request"]
name: Coveralls
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm install, npm test:coverage
run: |
npm install
npm run test:coverage
env:
CI: true
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/lcov.info # optional (default value)
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}