Skip to content

Commit

Permalink
Merge pull request #183 from nschonni/github-actions
Browse files Browse the repository at this point in the history
chore: convert Travis to GitHub Actions
  • Loading branch information
dmwelch committed Sep 20, 2022
2 parents 6f79de8 + 74a9e89 commit a93bd96
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
@@ -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/cancel-workflow-action@0.9.1
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 a93bd96

Please sign in to comment.