Skip to content

Commit db2c90c

Browse files
authored
Fix Examples CI step: target non-rust examples with pnpm filter (#10856)
* Update to target non-rust examples * Try one example test * Add missing devDeps * Remove old cmd
1 parent 8e9b678 commit db2c90c

21 files changed

Lines changed: 77 additions & 58 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ jobs:
107107
CI: true
108108
- name: Generate and Diff Codegen Artifacts
109109
run: |
110-
EXAMPLE_TYPE=normal pnpm examples:codegen
110+
pnpm examples:codegen
111111
git diff --exit-code -- examples/
112112
- name: Build Examples
113113
run: |
114-
EXAMPLE_TYPE=normal pnpm examples:build
114+
pnpm examples:build
115115
- name: End2End Test Examples
116116
run: |
117-
EXAMPLE_TYPE=normal pnpm examples:test:end2end
117+
pnpm examples:test:end2end
118118
119119
# TODO: Remove all SWC test setup and references as that has been moved to https://github.com/swc-project/plugins/tree/main/contrib/graphql-codegen-client-preset
120120
# dev-tests-swc:

examples/persisted-documents-string-mode/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@babel/preset-env": "7.29.5",
1818
"@babel/preset-typescript": "7.28.5",
1919
"@graphql-codegen/cli": "workspace:*",
20+
"@graphql-codegen/client-preset": "workspace:*",
2021
"@graphql-typed-document-node/core": "3.2.0"
2122
},
2223
"bob": false

examples/react/apollo-client-defer/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@apollo/client": "3.14.1",
16+
"@graphql-typed-document-node/core": "3.2.0",
1617
"@graphql-yoga/plugin-defer-stream": "3.21.0",
1718
"graphql": "16.14.0",
1819
"graphql-yoga": "5.21.0",
@@ -21,6 +22,7 @@
2122
},
2223
"devDependencies": {
2324
"@graphql-codegen/cli": "workspace:*",
25+
"@graphql-codegen/client-preset": "workspace:*",
2426
"@types/node": "24.12.4",
2527
"@types/react": "19.2.14",
2628
"@types/react-dom": "19.2.3",

examples/react/apollo-client-swc-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "example-apollo-client-swc-plugin",
2+
"name": "rust-example-apollo-client-swc-plugin",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {

examples/react/apollo-client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@graphql-codegen/cli": "workspace:*",
21+
"@graphql-codegen/client-preset": "workspace:*",
2122
"@types/node": "24.12.4",
2223
"@types/react": "19.2.14",
2324
"@types/react-dom": "19.2.3",

examples/react/http-executor/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"@graphql-codegen/cli": "workspace:*",
20+
"@graphql-codegen/client-preset": "workspace:*",
2021
"@types/node": "24.12.4",
2122
"@types/react": "19.2.14",
2223
"@types/react-dom": "19.2.3",

examples/react/nextjs-swr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "example-react-nextjs-swr",
2+
"name": "rust-example-react-nextjs-swr",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {

examples/react/tanstack-react-query/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"@graphql-codegen/cli": "workspace:*",
20+
"@graphql-codegen/client-preset": "workspace:*",
2021
"@types/node": "24.12.4",
2122
"@types/react": "19.2.14",
2223
"@types/react-dom": "19.2.3",

examples/react/urql/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"@graphql-codegen/cli": "workspace:*",
20+
"@graphql-codegen/client-preset": "workspace:*",
2021
"@types/react": "19.2.14",
2122
"@types/react-dom": "19.2.3",
2223
"@vitejs/plugin-react": "6.0.2",

examples/typescript-esm/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"graphql": "16.14.0"
1515
},
1616
"devDependencies": {
17-
"@graphql-codegen/cli": "workspace:*"
17+
"@graphql-codegen/cli": "workspace:*",
18+
"@graphql-codegen/client-preset": "workspace:*"
1819
},
1920
"bob": false
2021
}

0 commit comments

Comments
 (0)