From da0dc2adb8b7303d123cbc293c550517b2e20ebe Mon Sep 17 00:00:00 2001 From: Peter Balazs Date: Thu, 30 Apr 2020 11:13:02 +0100 Subject: [PATCH 1/7] update fastify to v3 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 90799fb..11690ea 100644 --- a/package.json +++ b/package.json @@ -25,11 +25,11 @@ "homepage": "https://github.com/fastify/fastify-env#readme", "dependencies": { "env-schema": "^1.0.0", - "fastify-plugin": "^1.0.1" + "fastify-plugin": "^2.0.0" }, "devDependencies": { "cross-env": "^5.2.0", - "fastify": "^2.0.0", + "fastify": "^3.0.0-rc.1", "pre-commit": "^1.2.2", "snazzy": "^8.0.0", "standard": "^14.0.2", From 1777bc914c544a5e7f4acb73cb27e5e29a1d0def Mon Sep 17 00:00:00 2001 From: Peter Balazs Date: Thu, 30 Apr 2020 11:13:31 +0100 Subject: [PATCH 2/7] fix typo --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b622405..d8d5201 100644 --- a/index.js +++ b/index.js @@ -15,6 +15,6 @@ function loadAndValidateEnvironment (fastify, opts, done) { } module.exports = fp(loadAndValidateEnvironment, { - fatify: '>=0.39.0', + fastify: '>=0.39.0', name: 'fastify-env' }) From cb108a5faee37f9dcc710c99f06a0e0482186e24 Mon Sep 17 00:00:00 2001 From: Peter Balazs Date: Thu, 30 Apr 2020 11:15:59 +0100 Subject: [PATCH 3/7] add dependabot config --- .dependabot/config.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .dependabot/config.yml diff --git a/.dependabot/config.yml b/.dependabot/config.yml new file mode 100644 index 0000000..816b763 --- /dev/null +++ b/.dependabot/config.yml @@ -0,0 +1,5 @@ +version: 1 +update_conigs: + package_manager: "javascript" + directory: "/" + update_schedule: "daily" \ No newline at end of file From 822f70f4b153cccedf3461149e4b286657de1557 Mon Sep 17 00:00:00 2001 From: Peter Balazs Date: Thu, 30 Apr 2020 11:16:22 +0100 Subject: [PATCH 4/7] move ci to github actions --- .github/workflows/ci.yml | 18 ++++++++++++++++++ .travis.yml | 15 --------------- package.json | 5 ----- 3 files changed, 18 insertions(+), 20 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..38ce605 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI workflow +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install Dependencies + run: npm install --ignore-scripts + - name: Test + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e072191..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js - -node_js: - - "12" - - "10" - - "8" - - "6" - -script: - - npm run test - -notifications: - email: - on_success: never - on_failure: always diff --git a/package.json b/package.json index 11690ea..cbec5ac 100644 --- a/package.json +++ b/package.json @@ -34,10 +34,5 @@ "snazzy": "^8.0.0", "standard": "^14.0.2", "tap": "^12.6.6" - }, - "greenkeeper": { - "ignore": [ - "tap" - ] } } From 26e148e61e978cba6f05f50dc77b07ecee42630e Mon Sep 17 00:00:00 2001 From: Peter Balazs Date: Fri, 1 May 2020 10:39:18 +0100 Subject: [PATCH 5/7] add build status badge --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index b75f60e..633ec49 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # fastify-env -[![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-env.svg)](https://greenkeeper.io/) -[![Build Status](https://travis-ci.org/fastify/fastify-env.svg?branch=master)](https://travis-ci.org/fastify/fastify-env) +![CI workflow](https://github.com/fastify/fastify-env/workflows/CI%20workflow/badge.svg) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) Fastify plugin to check environment variables From 15cdbbacd223ea09aee04a28f5999d76bd97dc15 Mon Sep 17 00:00:00 2001 From: Peter Balazs Date: Mon, 4 May 2020 09:21:40 +0100 Subject: [PATCH 6/7] update version --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d8d5201..341cc8e 100644 --- a/index.js +++ b/index.js @@ -15,6 +15,6 @@ function loadAndValidateEnvironment (fastify, opts, done) { } module.exports = fp(loadAndValidateEnvironment, { - fastify: '>=0.39.0', + fastify: '>=3.x', name: 'fastify-env' }) From 38c73ae4fbd18908acb6baa0613317c03ab4d6e6 Mon Sep 17 00:00:00 2001 From: Peter Balazs Date: Wed, 6 May 2020 17:31:50 +0100 Subject: [PATCH 7/7] fix dependabot config and plugin version --- .dependabot/config.yml | 6 +++--- index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.dependabot/config.yml b/.dependabot/config.yml index 816b763..5164a9e 100644 --- a/.dependabot/config.yml +++ b/.dependabot/config.yml @@ -1,5 +1,5 @@ version: 1 update_conigs: - package_manager: "javascript" - directory: "/" - update_schedule: "daily" \ No newline at end of file + - package_manager: "javascript" + directory: "/" + update_schedule: "daily" \ No newline at end of file diff --git a/index.js b/index.js index 341cc8e..3fa705e 100644 --- a/index.js +++ b/index.js @@ -15,6 +15,6 @@ function loadAndValidateEnvironment (fastify, opts, done) { } module.exports = fp(loadAndValidateEnvironment, { - fastify: '>=3.x', + fastify: '3.x', name: 'fastify-env' })