Skip to content

Commit

Permalink
Merge pull request #58 from ayebear/coveralls
Browse files Browse the repository at this point in the history
Add coveralls to gh action
  • Loading branch information
ayebear authored May 10, 2022
2 parents 6a8b29a + ee8707f commit 89c8e70
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -20,12 +19,16 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm run test
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
],
"scripts": {
"test": "jest --coverage",
"testCoveralls": "jest --coverage && coveralls < coverage/lcov.info",
"doc": "node --experimental-vm-modules ./node_modules/.bin/esdoc",
"deploy": "gh-pages -d docs",
"prepare": "husky install"
Expand Down

0 comments on commit 89c8e70

Please sign in to comment.