镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.
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://github.com/raw/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