Skip to content

Commit

Permalink
Use Github Actions for CI (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
BPScott committed Jun 15, 2020
1 parent f0394c4 commit 41eb64f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 28 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: [master]
pull_request:

jobs:
ci:
name: 'Test: Node ${{ matrix.node-version }} - ESLint ${{ matrix.eslint-version }}'
runs-on: ubuntu-latest
strategy:
matrix:
eslint-version: [7.x, 6.x, 5.x]
node-version: [14.x, 12.x, 10.x, 8.x, 6.x]

exclude:
# eslint 7 does not support node 6 or 8
- eslint-version: 7.x
node-version: 8.x
- eslint-version: 7.x
node-version: 6.x
# eslint 6 does not support node 6
- eslint-version: 6.x
node-version: 6.x

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Use ESLint ${{ matrix.eslint-version }}
run: yarn upgrade eslint@${{ matrix.eslint-version }}

- name: Install
run: yarn install

- name: Test
run: yarn run test
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

0 comments on commit 41eb64f

Please sign in to comment.