Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
WesSouza committed Mar 5, 2020
1 parent 0272268 commit c9ee6fd
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 7 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI Tests

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- master

jobs:
lint:
runs-on: ubuntu-latest

name: Lint on node 12.x and ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Install deps and build
run: yarn install

- name: Lint codebase
run: yarn lint

test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node: ['10.x', '12.x', '13.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

name: Test on node ${{ matrix.node }} and ${{ matrix.os }}

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

- name: Install deps and build
run: yarn install

- name: Test package
run: yarn test --runInBand
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

0 comments on commit c9ee6fd

Please sign in to comment.