Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test against hapi 20 #21

Merged
merged 2 commits into from
Aug 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ jobs:
hapi-version:
- 18
- 19
- 20
exclude:
- node-version: 8.x
hapi-version: 19
- node-version: 10.x
hapi-version: 19
- node-version: 8.x
hapi-version: 20
- node-version: 10.x
hapi-version: 20
env:
HAPI_VERSION: ${{ matrix.hapi-version }}
steps:
Expand All @@ -30,5 +35,3 @@ jobs:
npm install
npm run lint
npm test
env:
CI: true
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/jscheffner/hapi-auth-any.svg?branch=master)](https://travis-ci.com/jscheffner/hapi-auth-any) [![Coverage Status](https://coveralls.io/repos/github/jscheffner/hapi-auth-any/badge.svg?branch=master)](https://coveralls.io/github/jscheffner/hapi-auth-any?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/jscheffner/hapi-auth-any/badge.svg?branch=master)](https://coveralls.io/github/jscheffner/hapi-auth-any?branch=master)

# hapi-auth-any

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"test": "nyc ava",
"test:hapi19": "cross-env HAPI_VERSION=19 nyc ava",
"test:hapi20": "cross-env HAPI_VERSION=20 nyc ava",
"lint": "eslint test index.js test/**/*.js examples/**/*.js",
"format": "npm run lint -- --fix",
"coverage": "nyc report --reporter=text-lcov | coveralls"
Expand Down Expand Up @@ -44,6 +45,7 @@
"eslint-plugin-react": "^7.14.3",
"hapi18": "npm:@hapi/hapi@^18.3.1",
"hapi19": "npm:@hapi/hapi@^19.0.5",
"hapi20": "npm:@hapi/hapi@^20.0.0",
"nyc": "^15.0.0"
},
"ava": {
Expand All @@ -56,9 +58,9 @@
"p-any": "^3.0.0"
},
"peerDependencies": {
"@hapi/hapi": "18.x || 19.x"
"@hapi/hapi": "18.x || 19.x || 20.x"
},
"engines": {
"node" : ">=8.0.0"
"node": ">=8.0.0"
}
}
2 changes: 1 addition & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line import/no-dynamic-require
const hapi = require(process.env.HAPI_VERSION === '19' ? 'hapi19' : 'hapi18');
const hapi = require(`hapi${process.env.HAPI_VERSION || '19'}`);
const boom = require('@hapi/boom');
const anyAuth = require('../');

Expand Down