Skip to content

Commit a4450f1

Browse files
committed
adjust install steps in test CI
1 parent 8d67e76 commit a4450f1

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ jobs:
4646
with:
4747
node-version: "20.11.0"
4848
cache: "yarn"
49-
- run: yarn install --immutable --mode=skip-build
50-
- run: yarn workspaces foreach --all --include "@apollo/*" add -D -P @apollo/client@${{ matrix.version }}
49+
- name: Set target version of Apollo Client (Root)
50+
run: npm pkg set resolutions.@apollo/client=$(npm view @apollo/client@${{ matrix.version }} version)
51+
- run: yarn install --mode=skip-build
52+
env:
53+
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
5154
- run: yarn workspaces foreach --all --include "@apollo/*" run build
5255
- run: yarn workspaces foreach --all --include "@apollo/*" run test | tee $GITHUB_STEP_SUMMARY; exit ${PIPESTATUS[0]}
5356
packageShapes:
@@ -64,8 +67,11 @@ jobs:
6467
with:
6568
node-version: "20.x"
6669
cache: "yarn"
67-
- run: yarn install --immutable --mode=skip-build
68-
- run: yarn workspaces foreach --all --include "@apollo/*" add -D -P @apollo/client@${{ matrix.version }}
70+
- name: Set target version of Apollo Client (Root)
71+
run: npm pkg set resolutions.@apollo/client=$(npm view @apollo/client@${{ matrix.version }} version)
72+
- run: yarn install --mode=skip-build
73+
env:
74+
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
6975
- run: yarn workspaces foreach --all -t --include "@apollo/*" run test-bundle | tee $GITHUB_STEP_SUMMARY; exit ${PIPESTATUS[0]}
7076
tests_playwright:
7177
name: Integration Tests

0 commit comments

Comments
 (0)