Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

ci: add github-actions ci lint, coverage and nightly #19

Merged
merged 1 commit into from
Jan 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


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

on:
- push
- pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npm run lint

test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version:
- 12.11.0 # minimal version
- 12 # v12.x
- 13.0.0
- 13
os:
- ubuntu-latest
- windows-latest
- macOS-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run coverage

test-nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: npm run coverage
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm install node
npm install
npm run coverage