Skip to content

Commit df96345

Browse files
committed
ci: fix cypress
1 parent 35fb59c commit df96345

File tree

5 files changed

+703
-1029
lines changed

5 files changed

+703
-1029
lines changed

.github/workflows/test-e2e-composable.yml

+9
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@ jobs:
2626
- name: Set alternate npm integrity keys
2727
run: |
2828
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
29+
2930
- uses: actions/checkout@v4
31+
3032
- run: corepack enable
33+
3134
- uses: actions/setup-node@v4
3235
with:
3336
node-version: 23
3437
cache: pnpm
38+
39+
- uses: actions/cache@v4
40+
with:
41+
path: ~/.cache/Cypress
42+
key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
43+
3544
- run: pnpm install
3645

3746
- name: Build

.github/workflows/test-e2e-options.yml

+9
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@ jobs:
2626
- name: Set alternate npm integrity keys
2727
run: |
2828
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
29+
2930
- uses: actions/checkout@v4
31+
3032
- run: corepack enable
33+
3134
- uses: actions/setup-node@v4
3235
with:
3336
node-version: 23
3437
cache: pnpm
38+
39+
- uses: actions/cache@v4
40+
with:
41+
path: ~/.cache/Cypress
42+
key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
43+
3544
- run: pnpm install
3645

3746
- name: Build

.github/workflows/test-e2e-ssr.yml

+9
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@ jobs:
2626
- name: Set alternate npm integrity keys
2727
run: |
2828
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
29+
2930
- uses: actions/checkout@v4
31+
3032
- run: corepack enable
33+
3134
- uses: actions/setup-node@v4
3235
with:
3336
node-version: 23
3437
cache: pnpm
38+
39+
- uses: actions/cache@v4
40+
with:
41+
path: ~/.cache/Cypress
42+
key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
43+
3544
- run: pnpm install
3645

3746
- name: Build

package.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vue-apollo-monorepo",
33
"version": "4.2.1",
44
"private": true,
5-
"packageManager": "[email protected].1+sha512.40ee09af407fa9fbb5fbfb8e1cb40fbb74c0af0c3e10e9224d7b53c7658528615b2c92450e74cfad91e3a2dcafe3ce4050d80bda71d757756d2ce2b66213e9a3",
5+
"packageManager": "[email protected].2+sha512.47870716bea1572b53df34ad8647b42962bc790ce2bf4562ba0f643237d7302a3d6a8ecef9e4bdfc01d23af1969aa90485d4cebb0b9638fa5ef1daef656f6c1b",
66
"scripts": {
77
"build": "pnpm run -r --filter \"vue-apollo*\" --filter \"@vue/apollo*\" build",
88
"test": "pnpm run -r --sequential test",
@@ -50,7 +50,16 @@
5050
"esbuild": "*",
5151
"vue": "*"
5252
}
53-
}
53+
},
54+
"onlyBuiltDependencies": [
55+
"@apollo/protobufjs",
56+
"core-js",
57+
"core-js-pure",
58+
"cypress",
59+
"esbuild",
60+
"nodemon",
61+
"vue-demi"
62+
]
5463
},
5564
"resolutions": {
5665
"js-yaml": "^3.13.1"

0 commit comments

Comments
 (0)