Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #648 from Financial-Times/nori/upgrade-node
Browse files Browse the repository at this point in the history
Upgrade to Node 14/16
  • Loading branch information
ivomurrell committed Mar 16, 2022
2 parents 4f6bdf1 + 768578f commit db52c2b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 8 deletions.
52 changes: 46 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ references:
&container_config_node
working_directory: ~/project/build
docker:
- image: cimg/node:12.22
- image: cimg/node:<< parameters.node-version >>
parameters:
node-version:
default: "16.14"
type: string

workspace_root: &workspace_root ~/project

Expand Down Expand Up @@ -138,26 +142,46 @@ workflows:
- build:
filters:
<<: *filters_ignore_tags_renovate_nori
name: build-v<< matrix.node-version >>
matrix:
parameters:
node-version: [ "16.14", "14.19" ]
- test:
requires:
- build
- build-v<< matrix.node-version >>
name: test-v<< matrix.node-version >>
matrix:
parameters:
node-version: [ "16.14", "14.19" ]

build-test-publish:
jobs:
- build:
filters:
<<: *filters_version_tag
name: build-v<< matrix.node-version >>
matrix:
parameters:
node-version: [ "16.14", "14.19" ]
- test:
filters:
<<: *filters_version_tag
requires:
- build
- build-v<< matrix.node-version >>
name: test-v<< matrix.node-version >>
matrix:
parameters:
node-version: [ "16.14", "14.19" ]
- publish:
context: npm-publish-token
filters:
<<: *filters_version_tag
requires:
- test
- test-v<< matrix.node-version >>
name: publish-v<< matrix.node-version >>
matrix:
parameters:
node-version: [ "16.14", "14.19" ]

renovate-nori-build-test:
jobs:
Expand All @@ -168,9 +192,17 @@ workflows:
- build:
requires:
- waiting-for-approval
name: build-v<< matrix.node-version >>
matrix:
parameters:
node-version: [ "16.14", "14.19" ]
- test:
requires:
- build
- build-v<< matrix.node-version >>
name: test-v<< matrix.node-version >>
matrix:
parameters:
node-version: [ "16.14", "14.19" ]

nightly:
triggers:
Expand All @@ -181,10 +213,18 @@ workflows:
jobs:
- build:
context: next-nightly-build
name: build-v<< matrix.node-version >>
matrix:
parameters:
node-version: [ "16.14", "14.19" ]
- test:
requires:
- build
- build-v<< matrix.node-version >>
context: next-nightly-build
name: test-v<< matrix.node-version >>
matrix:
parameters:
node-version: [ "16.14", "14.19" ]

notify:
webhooks:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@financial-times/n-heroku-tools",
"version": "0.0.0",
"engines": {
"node": "12.x",
"node": "14.x || 16.x",
"npm": "7.x || 8.x"
},
"bin": {
Expand Down Expand Up @@ -53,7 +53,7 @@
}
},
"volta": {
"node": "12.22.5",
"node": "16.14.0",
"npm": "7.20.2"
}
}

0 comments on commit db52c2b

Please sign in to comment.