From 579016ec34093a72505b49c6a545ace71a5c68a6 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 7 Dec 2020 11:10:23 -0500 Subject: [PATCH 1/6] Use GitHub Actions CI --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6ef6d56 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [6.x, 8.x, 10.x, 12.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 ci + - run: npm test From b68fd44917dc2b850824bc273d42957b43ad1d07 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 7 Dec 2020 11:12:10 -0500 Subject: [PATCH 2/6] Delete .travis.yml --- .travis.yml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .travis.yml 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" - ] -} From 4e41de042762f9b34361282339e99cb334629d46 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 7 Dec 2020 11:13:06 -0500 Subject: [PATCH 3/6] npm install --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ef6d56..e4a8e69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,5 +18,5 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm ci + - run: npm install - run: npm test From 7b120814be1c0339d0ae44615d7356f36aa52cfb Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 7 Dec 2020 11:15:51 -0500 Subject: [PATCH 4/6] Rename build to test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4a8e69..541fcae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - build: + test: runs-on: ubuntu-latest strategy: matrix: From 3e7c0f02a7129a64ae9b7aa643a75341d6c5e315 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 7 Dec 2020 11:19:04 -0500 Subject: [PATCH 5/6] Decrease matrix --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 541fcae..f4ea226 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [6.x, 8.x, 10.x, 12.x, 14.x] + node-version: [6.x, 14.x] steps: - uses: actions/checkout@v2 - name: Node.js ${{ matrix.node-version }} From 46cdfbbe640ee7101b4a61a05fc6b155db44bd52 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 7 Dec 2020 13:31:43 -0500 Subject: [PATCH 6/6] Update badge --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.