Skip to content

Commit

Permalink
chore: convert Travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Dec 3, 2021
1 parent 6446be3 commit 74a9e89
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 20 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
pull_request:
push:

jobs:

build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node:
- 12
- 14
- 16
- 17
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: ⬇️ Checkout
uses: actions/checkout@v2

- name: ⎔ Setup node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm

- name: 📥 Download deps
run: npm ci

- name: Test
run: npm test
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit 74a9e89

Please sign in to comment.