Skip to content

Commit 8e10e1c

Browse files
imjoshinwardpeet
andauthored
fix: ci pipeline (#36544) (#36568)
Co-authored-by: Michal Piechowiak <[email protected]> (cherry picked from commit 1125e58) Co-authored-by: Ward Peeters <[email protected]>
1 parent 725f071 commit 8e10e1c

File tree

27 files changed

+194
-366
lines changed

27 files changed

+194
-366
lines changed

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ commands:
169169
command: "REACT_VERSION=<< parameters.react_version >> TEST_PATH=<< parameters.test_path >> node ./scripts/upgrade-react"
170170
- run:
171171
name: Install gatsby-dev@next
172-
command: yarn global add gatsby-dev-cli@next
172+
command: yarn global add gatsby-dev-cli@next --ignore-engines
173173
- run:
174174
name: Run tests (using defaults)
175175
command: ./scripts/e2e-test.sh "<< parameters.test_path >>" "<< parameters.test_command >>"
@@ -280,7 +280,9 @@ jobs:
280280
test_path: integration-tests/gatsby-pipeline
281281

282282
integration_tests_gatsby_cli:
283-
executor: node
283+
executor:
284+
name: node
285+
image: "14.16.0"
284286
steps:
285287
- e2e-test:
286288
test_path: integration-tests/gatsby-cli

e2e-tests/contentful/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,9 @@
4646
"repository": {
4747
"type": "git",
4848
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
49+
},
50+
"//": "we need to add fixed version of @types/responsible because it's 14.16+ and the package is configured wrongly",
51+
"resolutions": {
52+
"responselike": "^2.0.0"
4953
}
50-
}
54+
}

e2e-tests/development-runtime/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,9 @@
7575
"repository": {
7676
"type": "git",
7777
"url": "https://github.com/gatsbyjs/gatsby"
78+
},
79+
"//": "we need to add fixed version of @types/responsible because it's 14.16+ and the package is configured wrongly",
80+
"resolutions": {
81+
"responselike": "^2.0.0"
7882
}
7983
}

e2e-tests/mdx/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,9 @@
4646
"is-ci": "^2.0.0",
4747
"prettier": "2.0.4",
4848
"start-server-and-test": "^1.7.1"
49+
},
50+
"//": "we need to add fixed version of @types/responsible because it's 14.16+ and the package is configured wrongly",
51+
"resolutions": {
52+
"responselike": "^2.0.0"
4953
}
5054
}

e2e-tests/path-prefix/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@
5151
"repository": {
5252
"type": "git",
5353
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
54+
},
55+
"//": "we need to add fixed version of @types/responsible because it's 14.16+ and the package is configured wrongly",
56+
"resolutions": {
57+
"responselike": "^2.0.0"
5458
}
5559
}

e2e-tests/production-runtime/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
],
2828
"license": "MIT",
2929
"scripts": {
30-
"build": "cross-env GATSBY_PREFIXED_FROM_COMMAND_LINE=YES FROM_COMMAND_LINE=YES CYPRESS_SUPPORT=y gatsby build",
31-
"build:offline": "cross-env GATSBY_PREFIXED_FROM_COMMAND_LINE=YES FROM_COMMAND_LINE=YES TEST_PLUGIN_OFFLINE=y CYPRESS_SUPPORT=y gatsby build",
30+
"build": "cross-env GATSBY_PREFIXED_FROM_COMMAND_LINE=YES FROM_COMMAND_LINE=YES CYPRESS_SUPPORT=y NODE_OPTIONS='--require ./polyfill-node-protocol-imports.js' gatsby build",
31+
"build:offline": "cross-env GATSBY_PREFIXED_FROM_COMMAND_LINE=YES FROM_COMMAND_LINE=YES TEST_PLUGIN_OFFLINE=y CYPRESS_SUPPORT=y NODE_OPTIONS='--require ./polyfill-node-protocol-imports.js' gatsby build",
3232
"develop": "cross-env CYPRESS_SUPPORT=y gatsby develop",
3333
"format": "prettier --write '**/*.js' --ignore-path .gitignore",
3434
"serve": "gatsby serve",
@@ -65,5 +65,9 @@
6565
"repository": {
6666
"type": "git",
6767
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
68+
},
69+
"//": "we need to add fixed version of @types/responsible because it's 14.16+ and the package is configured wrongly",
70+
"resolutions": {
71+
"responselike": "^2.0.0"
6872
}
6973
}

e2e-tests/themes/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
"gatsby-theme-about",
55
"production-runtime",
66
"development-runtime"
7-
]
7+
],
8+
"//": "we need to add fixed version of @types/responsible because it's 14.16+ and the package is configured wrongly",
9+
"resolutions": {
10+
"responselike": "^2.0.0"
11+
}
812
}

e2e-tests/trailing-slash/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,9 @@
3838
"npm-run-all": "^4.1.5",
3939
"prettier": "^2.5.1",
4040
"start-server-and-test": "^1.14.0"
41+
},
42+
"//": "we need to add fixed version of @types/responsible because it's 14.16+ and the package is configured wrongly",
43+
"resolutions": {
44+
"responselike": "^2.0.0"
4145
}
4246
}

e2e-tests/visual-regression/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,9 @@
4141
"repository": {
4242
"type": "git",
4343
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
44+
},
45+
"//": "we need to add fixed version of @types/responsible because it's 14.16+ and the package is configured wrongly",
46+
"resolutions": {
47+
"responselike": "^2.0.0"
4448
}
4549
}

integration-tests/artifacts/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@
2020
"devDependencies": {
2121
"fs-extra": "^10.1.0",
2222
"jest": "^27.2.1"
23+
},
24+
"//": "we need to add fixed version of @types/responsible because it's 14.16+ and the package is configured wrongly",
25+
"resolutions": {
26+
"responselike": "^2.0.0"
2327
}
2428
}

0 commit comments

Comments
 (0)