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

Commit e84296c

Browse files
panvatniessen
authored andcommitted
ci: add github-actions ci lint, coverage and nightly
1 parent f556f7d commit e84296c

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
- run: npm install
16+
- run: npm run lint
17+
18+
test:
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
node-version:
24+
- 12.11.0 # minimal version
25+
- 12 # v12.x
26+
- 13.0.0
27+
- 13
28+
os:
29+
- ubuntu-latest
30+
- windows-latest
31+
- macOS-latest
32+
steps:
33+
- uses: actions/checkout@master
34+
- uses: actions/setup-node@v1
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
- run: npm install
38+
- run: npm run coverage
39+
40+
test-nightly:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@master
44+
- name: npm run coverage
45+
run: |
46+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
47+
export NVM_DIR=~/.nvm
48+
source ~/.nvm/nvm.sh
49+
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm install node
50+
npm install
51+
npm run coverage

0 commit comments

Comments
 (0)