Skip to content

Commit

Permalink
ci: switch to using GitHub Actions
Browse files Browse the repository at this point in the history
Travis has been running really slow lately
  • Loading branch information
Rebecca Stevens committed Nov 18, 2020
1 parent 3144bc9 commit 0582e9c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 12 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
- push
- pull_request

jobs:
lint:
name: Linting Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup NodeJs
uses: actions/setup-node@v1
with:
node-version: "14"

- name: Install Dependencies
run: npm ci

- name: Run Linting Checks
run: npm run lint
test:
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
node_version:
- "14"
- "12"
name: Test with Node ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup NodeJs
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}

- name: Install Dependencies
run: npm ci

- name: Run Tests
run: npm run test
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

0 comments on commit 0582e9c

Please sign in to comment.