Skip to content

Commit

Permalink
Merge pull request #356 from tschaub/workflow
Browse files Browse the repository at this point in the history
Test as a GitHub action
  • Loading branch information
tschaub authored May 29, 2020
2 parents 27af5eb + 3103f04 commit 619d5b7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 14 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test

on:
push:
branches:
- master
pull_request:
branches:
- master

env:
CI: true

jobs:
run:
name: Node ${{ matrix.node }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
node:
- 6
- 8
- 10
- 12
- 14

steps:
- name: Clone repository
uses: actions/checkout@v2

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

- run: node --version
- run: npm --version

- name: Install npm dependencies
run: npm install # switch to `ci` when Node.js 6.x is dropped

- name: Run tests
run: npm test
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 619d5b7

Please sign in to comment.