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

ci: update workflows to use Node.js 20.x LTS #759

Merged
merged 1 commit into from
Nov 3, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ executors:
resource_class: macos.x86.medium.gen2
browsers:
docker:
- image: 'cypress/browsers:node-18.15.0-chrome-111.0.5563.146-1-ff-111.0.1-edge-111.0.1661.62-1'
- image: 'cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1'

jobs:
win-test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chrome-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
chrome:
runs-on: ubuntu-22.04
# https://github.com/cypress-io/cypress-docker-images
container: cypress/browsers:node-20.6.1-chrome-116.0.5845.187-1-ff-117.0-edge-116.0.1938.76-1
container: cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# install a specific version of Node using
# https://github.com/actions/setup-node
- name: Use Node.js 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
# install a specific version of Node using
# https://github.com/actions/setup-node
- name: Use Node.js 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
# install a specific version of Node using
# https://github.com/actions/setup-node
- name: Use Node.js 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
# install a specific version of Node using
# https://github.com/actions/setup-node
- name: Use Node.js 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

Expand Down
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cache:

# this job installs NPM dependencies and Cypress
install:
image: cypress/base:18.16.1
image: cypress/base:20.9.0
stage: build

script:
Expand All @@ -35,7 +35,7 @@ install:

# all jobs that actually run tests can use the same definition
.job_template:
image: cypress/base:18.16.1
image: cypress/base:20.9.0
stage: test
script:
# print CI environment variables for reference
Expand Down
2 changes: 1 addition & 1 deletion .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ blocks:
# common commands that should be done before each E2E test command
prologue:
commands:
- nvm install 12
- nvm install 20
- npm install -g npm
- checkout

Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:
- PUPPETEER_SKIP_DOWNLOAD=1

node_js:
- 18
- 20

cache:
# cache both npm modules and Cypress binary
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://documentation.codeship.com/pro/languages-frameworks/nodejs/

# use Cypress provided image with all dependencies included
FROM cypress/base:18.16.1
FROM cypress/base:20.9.0
RUN node --version
RUN npm --version
WORKDIR /home/node/app
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pipeline {
agent {
// this image provides everything needed to run Cypress
docker {
image 'cypress/base:18.14.1'
image 'cypress/base:20.9.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion azure-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- task: NodeTool@0
inputs:
versionSpec: '18.x'
versionSpec: '20.x'
displayName: 'Install Node.js'

# NPM modules and Cypress binary should be cached
Expand Down
2 changes: 1 addition & 1 deletion basic/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
test:
docker:
- image: cypress/base:18.16.1
- image: cypress/base:20.9.0
steps:
- checkout
# restore folders with npm dependencies and Cypress binary
Expand Down
2 changes: 1 addition & 1 deletion basic/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cache:
- cache/Cypress

test:
image: cypress/base:18.16.1
image: cypress/base:20.9.0
stage: test
script:
- npm ci
Expand Down
2 changes: 1 addition & 1 deletion basic/.semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ blocks:
jobs:
- name: npm ci and cache
commands:
- nvm install 18
- nvm install 20
- npm install -g npm
- checkout

Expand Down
2 changes: 1 addition & 1 deletion basic/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js

node_js:
- 18
- 20

cache:
# cache both npm modules and Cypress binary
Expand Down
2 changes: 1 addition & 1 deletion basic/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pipeline {
agent {
// this image provides everything needed to run Cypress
docker {
image 'cypress/base:18.14.1'
image 'cypress/base:20.9.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion basic/azure-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- task: NodeTool@0
inputs:
versionSpec: '18.x'
versionSpec: '20.x'
displayName: 'Install Node.js'

# NPM modules and Cypress binary should be cached
Expand Down
2 changes: 1 addition & 1 deletion basic/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
nodejs: latest
nodejs: 20
commands:
# Set COMMIT_INFO variables to send Git specifics to Cypress Cloud when recording
# https://docs.cypress.io/guides/continuous-integration/introduction#Git-information
Expand Down
2 changes: 1 addition & 1 deletion basic/codeship-pro/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://documentation.codeship.com/pro/languages-frameworks/nodejs/

# use Cypress provided image with all dependencies included
FROM cypress/base:18.16.1
FROM cypress/base:20.9.0
RUN node --version
RUN npm --version
WORKDIR /home/node/app
Expand Down
2 changes: 1 addition & 1 deletion buddy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
type: "BUILD"
working_directory: "/buddy/cypress-example-kitchensink"
docker_image_name: "cypress/base"
docker_image_tag: "18.14.1"
docker_image_tag: "20.9.0"
execute_commands:
- "npm install --force"
- "npm run cy:verify"
Expand Down
Loading