chore(ci): Switch CI job from nodejs 12 to nodejs 14 (#375)
This commit is contained in:
parent
2485b530e5
commit
2ece178ca1
|
@ -19,19 +19,22 @@ orbs:
|
||||||
browser-tools: circleci/browser-tools@1.1.0
|
browser-tools: circleci/browser-tools@1.1.0
|
||||||
|
|
||||||
references:
|
references:
|
||||||
# See https://hub.docker.com/r/cimg/node/tags for the nodejs versions
|
working_directory: &working_directory ~/webextension-polyfill
|
||||||
# available.
|
|
||||||
#
|
|
||||||
# TODO: not listing the docker image explicitly is likely to prevent
|
|
||||||
# renovatebot from being able to automatically create PRs to update it.
|
|
||||||
nodejs_current: &nodejs_current "12.22"
|
|
||||||
repo_path: &repo_path ~/webextension-polyfill
|
|
||||||
defaults: &defaults
|
defaults: &defaults
|
||||||
working_directory: *repo_path
|
working_directory: *working_directory
|
||||||
parameters:
|
# See https://hub.docker.com/r/cimg/node/tags for the cimg/node tags
|
||||||
nodejs_current:
|
# related to specific nodejs versions.
|
||||||
type: string
|
docker:
|
||||||
default: *nodejs_current
|
- image: cimg/node:14.19
|
||||||
|
|
||||||
|
defaults-browsers: &defaults-browsers
|
||||||
|
<<: *defaults
|
||||||
|
# Image variant (combined with circleci/browser-tools orb) used to
|
||||||
|
# run integration tests using Firefox, Chrome and Xvfb.
|
||||||
|
docker:
|
||||||
|
- image: cimg/node:14.19-browsers
|
||||||
|
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
run_npm_install:
|
run_npm_install:
|
||||||
|
@ -123,21 +126,18 @@ commands:
|
||||||
description: attach repo from workspace
|
description: attach repo from workspace
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: *repo_path
|
at: *working_directory
|
||||||
|
|
||||||
persist_project_repo:
|
persist_project_repo:
|
||||||
description: persist repo in workspace
|
description: persist repo in workspace
|
||||||
steps:
|
steps:
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: *repo_path
|
root: *working_directory
|
||||||
paths: .
|
paths: .
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
<<: *defaults
|
<<: *defaults-browsers
|
||||||
docker:
|
|
||||||
# Image variant including Firefox, Chrome and Xvfb
|
|
||||||
- image: cimg/node:<< parameters.nodejs_current >>-browsers
|
|
||||||
steps:
|
steps:
|
||||||
- browser-tools/install-browser-tools
|
- browser-tools/install-browser-tools
|
||||||
- attach_project_repo
|
- attach_project_repo
|
||||||
|
@ -150,8 +150,6 @@ jobs:
|
||||||
|
|
||||||
release-tag:
|
release-tag:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
docker:
|
|
||||||
- image: cimg/node:<< parameters.nodejs_current >>
|
|
||||||
steps:
|
steps:
|
||||||
- attach_project_repo
|
- attach_project_repo
|
||||||
- run_npm_build:
|
- run_npm_build:
|
||||||
|
|
Loading…
Reference in New Issue