From 82495ad75797223f11bd0c30427b3b5e94847e64 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 7 Dec 2020 13:33:14 -0500 Subject: [PATCH] Use GitHub Actions CI (#154) Travis is taking over an hour to run for some reason. This PR changes this repo to use GitHub Actions CI instead of Travis CI. --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ .travis.yml | 7 ------- readme.md | 2 +- 3 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f4ea226 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [6.x, 14.x] + steps: + - uses: actions/checkout@v2 + - name: Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ab0d211..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -{ - "language": "node_js", - "node_js": [ - "6", - "node" - ] -} diff --git a/readme.md b/readme.md index 0ca37a3..0fc1abb 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # ms -[![Build Status](https://travis-ci.org/vercel/ms.svg?branch=master)](https://travis-ci.org/vercel/ms) +![CI](https://github.com/vercel/ms/workflows/CI/badge.svg) Use this package to easily convert various time formats to milliseconds.