Run on node 12 in production, update test matrix (#5436)
* upgrade node/npm versions in package.json * delete config for zeit now zeit now is no more, vercel have decomissioned the now v1 platform * upgrade to node 12 for (docker) self-hosting users * update docs * update test matrix run tests on node 12 and node 14 * link to nodejs version support docs in package comment we'll continue to tun the package tests on node 10 while its still maintained and drop in the next major release * update depcheck * remove npm-install job
This commit is contained in:
@@ -129,6 +129,7 @@ package_steps: &package_steps
|
||||
|
||||
# Run the package tests on each currently supported node version. See:
|
||||
# https://github.com/badges/shields/blob/master/badge-maker/README.md#node-version-support
|
||||
# https://nodejs.org/en/about/releases/
|
||||
|
||||
- run:
|
||||
<<: *run_package_tests
|
||||
@@ -161,47 +162,35 @@ package_steps: &package_steps
|
||||
path: junit
|
||||
|
||||
jobs:
|
||||
npm-install:
|
||||
docker:
|
||||
- image: circleci/node:10
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
- run:
|
||||
name: Install dependencies
|
||||
command: npm ci
|
||||
environment:
|
||||
CYPRESS_INSTALL_BINARY: 0
|
||||
|
||||
main:
|
||||
docker:
|
||||
- image: circleci/node:10
|
||||
- image: circleci/node:12
|
||||
|
||||
<<: *main_steps
|
||||
|
||||
main@node-12:
|
||||
main@node-14:
|
||||
docker:
|
||||
- image: circleci/node:12
|
||||
- image: circleci/node:14
|
||||
|
||||
<<: *main_steps
|
||||
|
||||
integration:
|
||||
docker:
|
||||
- image: circleci/node:10
|
||||
- image: circleci/node:12
|
||||
- image: redis
|
||||
|
||||
<<: *integration_steps
|
||||
|
||||
integration@node-12:
|
||||
integration@node-14:
|
||||
docker:
|
||||
- image: circleci/node:12
|
||||
- image: circleci/node:14
|
||||
- image: redis
|
||||
|
||||
<<: *integration_steps
|
||||
|
||||
danger:
|
||||
docker:
|
||||
- image: circleci/node:10
|
||||
- image: circleci/node:12
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
@@ -221,7 +210,7 @@ jobs:
|
||||
|
||||
frontend:
|
||||
docker:
|
||||
- image: circleci/node:10
|
||||
- image: circleci/node:12
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
@@ -262,13 +251,13 @@ jobs:
|
||||
|
||||
services:
|
||||
docker:
|
||||
- image: circleci/node:10
|
||||
- image: circleci/node:12
|
||||
|
||||
<<: *services_steps
|
||||
|
||||
services@node-12:
|
||||
services@node-14:
|
||||
docker:
|
||||
- image: circleci/node:12
|
||||
- image: circleci/node:14
|
||||
|
||||
<<: *services_steps
|
||||
|
||||
@@ -323,11 +312,11 @@ workflows:
|
||||
filters:
|
||||
branches:
|
||||
ignore: gh-pages
|
||||
- main@node-12:
|
||||
- main@node-14:
|
||||
filters:
|
||||
branches:
|
||||
ignore: gh-pages
|
||||
- integration@node-12:
|
||||
- integration@node-14:
|
||||
filters:
|
||||
branches:
|
||||
ignore: gh-pages
|
||||
@@ -345,7 +334,7 @@ workflows:
|
||||
ignore:
|
||||
- master
|
||||
- gh-pages
|
||||
- services@node-12:
|
||||
- services@node-14:
|
||||
filters:
|
||||
branches:
|
||||
ignore:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM node:10-alpine
|
||||
FROM node:12-alpine
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
RUN mkdir /usr/src/app/private
|
||||
|
||||
@@ -98,8 +98,8 @@ You can read a [tutorial on how to add a badge][tutorial].
|
||||
|
||||
## Development
|
||||
|
||||
1. Install Node 10 or later. You can use the [package manager][] of your choice.
|
||||
Tests need to pass in Node 10 and 12.
|
||||
1. Install Node 12 or later. You can use the [package manager][] of your choice.
|
||||
Tests need to pass in Node 12 and 14.
|
||||
2. Clone this repository.
|
||||
3. Run `npm ci` to install the dependencies.
|
||||
4. Run `npm start` to start the badge server and the frontend dev server.
|
||||
|
||||
@@ -25,7 +25,7 @@ and learn about the [Github workflow](http://try.github.io/).
|
||||
|
||||
#### Node, NPM
|
||||
|
||||
Node 10 or later is required. If you don't already have them,
|
||||
Node 12 or later is required. If you don't already have them,
|
||||
install node and npm: https://nodejs.org/en/download/
|
||||
|
||||
### Setup a dev install
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## Installation
|
||||
|
||||
You will need Node 10 or later, which you can install using a
|
||||
You will need Node 12 or later, which you can install using a
|
||||
[package manager][].
|
||||
|
||||
On Ubuntu / Debian:
|
||||
|
||||
11
now.json
11
now.json
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"version": 1,
|
||||
"name": "shields",
|
||||
"env": {
|
||||
"PERSISTENCE_DIR": "/tmp/persistence"
|
||||
},
|
||||
"type": "npm",
|
||||
"engines": {
|
||||
"node": "8.x"
|
||||
}
|
||||
}
|
||||
@@ -96,7 +96,7 @@
|
||||
"test": "run-s --silent --continue-on-error lint test:frontend test:package test:core test:entrypoint check-types:package check-types:frontend prettier:check",
|
||||
"check-types:package": "tsd badge-maker",
|
||||
"check-types:frontend": "tsc --noEmit --project .",
|
||||
"depcheck": "check-node-version --node \">= 10.0\"",
|
||||
"depcheck": "check-node-version --node \">= 12.0\"",
|
||||
"postinstall": "run-s --silent depcheck",
|
||||
"prebuild": "run-s --silent depcheck",
|
||||
"features": "node scripts/export-supported-features-cli.js > supported-features.json",
|
||||
@@ -250,8 +250,8 @@
|
||||
"typescript": "^3.8.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^10.16.3",
|
||||
"npm": "^6.11.3"
|
||||
"node": "^12.18.3",
|
||||
"npm": "^6.14.7"
|
||||
},
|
||||
"babel": {
|
||||
"plugins": [
|
||||
|
||||
Reference in New Issue
Block a user