Skip to content

Commit 41eb64f

Browse files
authored
Use Github Actions for CI (#305)
1 parent f0394c4 commit 41eb64f

File tree

2 files changed

+42
-28
lines changed

2 files changed

+42
-28
lines changed

.github/workflows/ci.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
ci:
10+
name: 'Test: Node ${{ matrix.node-version }} - ESLint ${{ matrix.eslint-version }}'
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
eslint-version: [7.x, 6.x, 5.x]
15+
node-version: [14.x, 12.x, 10.x, 8.x, 6.x]
16+
17+
exclude:
18+
# eslint 7 does not support node 6 or 8
19+
- eslint-version: 7.x
20+
node-version: 8.x
21+
- eslint-version: 7.x
22+
node-version: 6.x
23+
# eslint 6 does not support node 6
24+
- eslint-version: 6.x
25+
node-version: 6.x
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
35+
- name: Use ESLint ${{ matrix.eslint-version }}
36+
run: yarn upgrade eslint@${{ matrix.eslint-version }}
37+
38+
- name: Install
39+
run: yarn install
40+
41+
- name: Test
42+
run: yarn run test

.travis.yml

-28
This file was deleted.

0 commit comments

Comments
 (0)