diff --git a/.dependabot/config.yml b/.dependabot/config.yml new file mode 100644 index 0000000..cae63e3 --- /dev/null +++ b/.dependabot/config.yml @@ -0,0 +1,5 @@ +version: 1 +update_configs: + - package_manager: "javascript" + directory: "/" + update_schedule: "daily" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..14037f4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +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: Lint + run: npm run lint-ci + - name: Test + run: npm run test-ci diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e363fd1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: node_js - -node_js: - - "11" - - "10" - - "8" - - "6" - -script: - - npm run lint-ci - - npm run test-ci - -notifications: - email: - on_success: never - on_failure: always diff --git a/Readme.md b/Readme.md index 5fcf573..7d4861e 100644 --- a/Readme.md +++ b/Readme.md @@ -1,10 +1,10 @@ # fastify-caching -[![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-caching.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/fastify/fastify-caching.svg?branch=master)](https://travis-ci.org/fastify/fastify-caching) +![CI workflow](https://github.com/fastify/fastify-caching/workflows/CI%20workflow/badge.svg) *fastify-caching* is a plugin for the [Fastify](http://fastify.io/) framework that provides mechanisms for manipulating HTTP cache headers according to -[RFC 2616 §14.9](https://tools.ietf.org/html/rfc2616#section-14.9). +[RFC 2616 §14.9](https://tools.ietf.org/html/rfc2616#section-14.9). Supports Fastify versions ^2.0.0. diff --git a/package.json b/package.json index a67a768..871d010 100644 --- a/package.json +++ b/package.json @@ -29,15 +29,15 @@ }, "homepage": "https://github.com/fastify/fastify-caching#readme", "devDependencies": { - "fastify": "^2.0.0", + "fastify": "^3.0.0-rc.1", "pre-commit": "^1.2.2", "snazzy": "^8.0.0", "standard": "^14.0.0", - "tap": "^12.6.6" + "tap": "^14.10.7" }, "dependencies": { "abstract-cache": "^1.0.1", - "fastify-plugin": "^1.2.1", + "fastify-plugin": "^2.0.0", "uid-safe": "^2.1.5" }, "greenkeeper": { diff --git a/plugin.js b/plugin.js index bbbd5d6..3ce02fe 100644 --- a/plugin.js +++ b/plugin.js @@ -88,7 +88,7 @@ function fastifyCachingPlugin (instance, options, next) { } module.exports = fp(fastifyCachingPlugin, { - fastify: '^2.0.0', + fastify: '^3.0.0', name: 'fastify-caching' })