Skip to content

Commit

Permalink
Update fastify to v3 (#64)
Browse files Browse the repository at this point in the history
* update fastify to v3

* fix typo

* add dependabot config

* move ci to github actions

* add build status badge

* update version

* fix dependabot config and plugin version
  • Loading branch information
frikille authored May 18, 2020
1 parent afca0bc commit 869e026
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 25 deletions.
5 changes: 5 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: 1
update_conigs:
- package_manager: "javascript"
directory: "/"
update_schedule: "daily"
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ function loadAndValidateEnvironment (fastify, opts, done) {
}

module.exports = fp(loadAndValidateEnvironment, {
fatify: '>=0.39.0',
fastify: '3.x',
name: 'fastify-env'
})
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}

0 comments on commit 869e026

Please sign in to comment.