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.