Skip to content

Commit

Permalink
use Github Actions (#42)
Browse files Browse the repository at this point in the history
* ci: add Github Actions

* ci: remove travis

* ci: expand matrix

* ci: fix versions

* ci: fixes for old node.js versions

* ci: use nvm on non-windows

* ci: nvm differently

* ci: load nvm

* ci: set-env
  • Loading branch information
goto-bus-stop authored Nov 18, 2019
1 parent 89a1993 commit 0fc4a97
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 27 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Node CI

on: [push, pull_request]

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ['0.8', '0.10', '0.12', '4.x', '6.x', '8.x', '10.x', '12.x']
exclude:
- os: windows-latest
node-version: '0.8'

runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Disable strict SSL checks
uses: allenevans/[email protected]
with:
NPM_CONFIG_STRICT_SSL: 'false'
if: matrix.node-version == '0.8'
- name: Upgrade npm to latest available version
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
source $HOME/.nvm/nvm.sh
nvm install-latest-npm
if: matrix.os != 'windows-latest'
- run: npm install
- run: npm test
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

0 comments on commit 0fc4a97

Please sign in to comment.