diff --git a/.dependabot/config.yml b/.dependabot/config.yml new file mode 100644 index 0000000..5164a9e --- /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 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/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 diff --git a/index.js b/index.js index b622405..3fa705e 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: '3.x', name: 'fastify-env' }) diff --git a/package.json b/package.json index 90799fb..cbec5ac 100644 --- a/package.json +++ b/package.json @@ -25,19 +25,14 @@ "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", "tap": "^12.6.6" - }, - "greenkeeper": { - "ignore": [ - "tap" - ] } }