Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit c8705e2

Browse files
authored
Chore: update node18 cy 13 (#261)
* chore: update all jobs to node 18 * chore: update cypress to v13 * move circle config to run jobs * add ci back into cypress-example-todomvc-redux
1 parent c1e025f commit c8705e2

File tree

6 files changed

+170
-74
lines changed

6 files changed

+170
-74
lines changed

.circleci/config.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
defaultCypressOrbConfig: &defaultCypressOrbConfig
2+
executor:
3+
name: cypress/default
4+
node-version: '18.17.1'
5+
6+
# Use the latest 2.1 version of CircleCI pipeline process engine.
7+
# See: https://circleci.com/docs/configuration-reference
8+
version: 2.1
9+
orbs:
10+
# see https://github.com/cypress-io/circleci-orb
11+
cypress: cypress-io/cypress@3.1.4
12+
jobs:
13+
install-and-persist:
14+
<<: *defaultCypressOrbConfig
15+
steps:
16+
- cypress/install:
17+
install-command: yarn
18+
- persist_to_workspace:
19+
paths:
20+
- .cache/Cypress
21+
- project
22+
root: ~/
23+
run-tests:
24+
<<: *defaultCypressOrbConfig
25+
steps:
26+
- attach_workspace:
27+
at: ~/
28+
- cypress/run-tests:
29+
start-command: npm run start
30+
cypress-command: NODE_ENV=test npm run cypress:run
31+
- run: npm run report:coverage:summary
32+
- run: npm run report:coverage:text
33+
# send code coverage to coveralls.io
34+
# https://coveralls.io/github/cypress-io/cypress-example-todomvc-redux
35+
# our coveralls account is currently not enabled
36+
# - run: npm run coveralls
37+
38+
# See: https://circleci.com/docs/configuration-reference/#workflows
39+
workflows:
40+
main:
41+
jobs:
42+
- install-and-persist
43+
- run-tests:
44+
requires:
45+
- install-and-persist

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cache:
1414

1515
# this job installs NPM dependencies and Cypress
1616
test:
17-
image: cypress/base:14
17+
image: cypress/base:18.16.1
1818
script:
1919
- yarn install --frozen-lockfile
2020
# check Cypress binary path and cached versions

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.12
1+
18.16.0

circle.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"private": true,
77
"engines": {
8-
"node": ">=12.14"
8+
"node": ">=18"
99
},
1010
"scripts": {
1111
"test": "start-test 1234 cypress:run",
@@ -43,7 +43,7 @@
4343
"babel-plugin-transform-class-properties": "6.24.1",
4444
"coveralls": "3.1.1",
4545
"cross-env": "7.0.3",
46-
"cypress": "12.3.0",
46+
"cypress": "13.1.0",
4747
"cypress-react-unit-test": "4.17.2",
4848
"istanbul-lib-coverage": "3.2.0",
4949
"parcel-bundler": "1.12.5",

0 commit comments

Comments
 (0)