Skip to content

Commit

Permalink
Migrate to GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Nov 11, 2019
1 parent fcbedda commit c6bbaaa
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 46 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Node CI

on: [push]

jobs:
build:
name: Test Node.js ${{ matrix.node-version }} on ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [6.x, 8.x, 10.x, 12.x]

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: Print Node.js Version
run: node --version

- name: Install Dependencies
run: npm install
env:
CI: true

- name: Run "build" step
run: npm run build --if-present
env:
CI: true

- name: Run tests
run: npm test
env:
CI: true
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Parse the various Spotify URI formats into Objects and back",
"main": "index.js",
"scripts": {
"test": "make test"
"test": "mocha --reporter spec"
},
"repository": {
"type": "git",
Expand All @@ -25,7 +25,6 @@
"url": "https://github.com/TooTallNate/spotify-uri/issues"
},
"devDependencies": {
"mocha": "~1.10.0",
"zuul": "~1.13.0"
"mocha": "6"
}
}

0 comments on commit c6bbaaa

Please sign in to comment.