Skip to content

Commit

Permalink
added code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fearphage committed Aug 27, 2019
1 parent 8723ed0 commit 88cf7a9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,34 @@ name: Node CI
on: [push]

jobs:
build:

test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
node-version: [8, 10, 12]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm ci
run: npm ci

- run: npm ci
- name: Pre-Test
run: |
npm run lint
npm run test-headless -- --chrome $(which google-chrome-stable) --allow-chrome-as-root
npm run test-webworker -- --chrome $(which google-chrome-stable) --allow-chrome-as-root
npm run test-esm-bundle
if: matrix.node-version == '10.x'
if: matrix.node-version == 10

- name: npm test
run: npm run test-node

- name: code coverage
run: |
npm run test-coverage -- --chrome $(which google-chrome-stable) --allow-chrome-as-root
cat ./coverage/lcov.info | coveralls lib
if: matrix.node-version == 10

0 comments on commit 88cf7a9

Please sign in to comment.