Skip to content

Commit

Permalink
Merge pull request #439 from florianholzapfel/updates
Browse files Browse the repository at this point in the history
Maintenance updates
  • Loading branch information
florianholzapfel authored Aug 31, 2022
2 parents 9eccf03 + 66cbd9c commit ffc6531
Show file tree
Hide file tree
Showing 9 changed files with 6,023 additions and 2,108 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: git checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Start MongoDB
uses: supercharge/[email protected]
- run: npm i mongoose@^5.8.10
- run: npm i mongoose@6.x
- run: npm run lint
- run: npm run test ci
- run: npm install coveralls@~2.11.0
- run: npm run report-coverage
- run: npm run test-ci
12 changes: 6 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Easily create a flexible REST interface for mongoose models.
[![Build Status](https://github.com/florianholzapfel/express-restify-mongoose/actions/workflows/node.js.yml/badge.svg)](https://github.com/florianholzapfel/express-restify-mongoose/actions/workflows/node.js.yml)
[](https://sonarcloud.io/project/overview?id=florianholzapfel_express-restify-mongoose)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=florianholzapfel_express-restify-mongoose&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=florianholzapfel_express-restify-mongoose)
[![Coverage Status](https://coveralls.io/repos/florianholzapfel/express-restify-mongoose/badge.svg?branch=master&service=github)](https://coveralls.io/github/florianholzapfel/express-restify-mongoose?branch=master)
[![npm version](https://badge.fury.io/js/express-restify-mongoose.svg)](https://badge.fury.io/js/express-restify-mongoose)

## Getting started
Expand All @@ -22,6 +21,7 @@ npm install express-restify-mongoose --save

| This library | Mongoose |
| ------------ | -------- |
| >= 7.0.0 | >= 6.x |
| >= 6.0.0 | >= 5.8.0 |
| >= 1.0.0 | 4.x |
| 0.7.5 | 3.x |
Expand Down
Loading

0 comments on commit ffc6531

Please sign in to comment.