mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
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:
35
.github/workflows/coveralls.yml
vendored
Normal file
35
.github/workflows/coveralls.yml
vendored
Normal 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 }}
|
||||
Reference in New Issue
Block a user