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

Commit

Permalink
ci: add github-actions ci lint, coverage and nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
panva authored and tniessen committed Jan 12, 2020
1 parent f556f7d commit e84296c
Showing 1 changed file with 51 additions and 0 deletions.
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

0 comments on commit e84296c

Please sign in to comment.