Skip to content

Commit

Permalink
Replace travis with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattphillips committed Jan 25, 2022
1 parent 98d05ee commit eb2df86
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 5 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 'GitHub CI'
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-node:
name: Test on Node.js v${{ matrix.node-version }} and jest v${{ matrix.jest-version }}
strategy:
fail-fast: false
matrix:
node-version: [12.x, 14.x, 16.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install
- run: yarn test:coverage

test-os:
name: Test on ${{ matrix.os }} using Node.js LTS
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- run: yarn install
- run: yarn test:coverage

lint:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- run: yarn install
- run: yarn lint
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

0 comments on commit eb2df86

Please sign in to comment.