Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Github Workflow #2076

Merged
merged 7 commits into from
Aug 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Node CI

on: [push]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
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 }}
- 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

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

- name: generate coverage
run: npm run test-coverage -- --chrome $(which google-chrome-stable) --allow-chrome-as-root
if: matrix.node-version == 10
- name: coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
if: matrix.node-version == 10