|
18 | 18 | single-ws: |
19 | 19 | # This job installs pnpm, |
20 | 20 | # installs all dependencies, |
21 | | - # caches the Cypress binary cache, |
22 | 21 | # then runs Cypress tests in the single workspace |
23 | 22 | # of the subfolder "packages/workspace-1". |
24 | 23 | runs-on: ubuntu-24.04 |
|
32 | 31 | run: npm install -g pnpm@10 |
33 | 32 |
|
34 | 33 | - name: Install dependencies |
35 | | - # with Cypress GitHub Action. |
36 | | - # Calling the Cypress GitHub Action causes all dependencies from |
37 | | - # the root of the pnpm workspace examples/start-and-pnpm-workspaces |
38 | | - # to be installed |
39 | | - # AND it automatically caches the Cypress binary. |
40 | | - uses: ./ |
41 | | - with: |
42 | | - working-directory: examples/start-and-pnpm-workspaces |
43 | | - runTests: false |
| 34 | + # All dependencies including workspaces are installed |
| 35 | + run: pnpm install --frozen-lockfile |
| 36 | + working-directory: examples/start-and-pnpm-workspaces |
44 | 37 |
|
45 | 38 | - name: Cypress test Single |
46 | 39 | # Run Cypress in examples/start-and-pnpm-workspaces/packages/workspace-1 only |
|
49 | 42 | # Do not attempt to install dependencies in the workspace using the action. |
50 | 43 | # There is no pnpm-lock.yaml file in a workspace for |
51 | 44 | # Cypress GitHub Action to use. |
52 | | - # We already installed dependencies when we called the action previously. |
| 45 | + # We already installed dependencies previously. |
53 | 46 | install: false |
54 | 47 | working-directory: examples/start-and-pnpm-workspaces/packages/workspace-1 |
55 | 48 | build: pnpm run build |
|
59 | 52 | multiple-ws: |
60 | 53 | # This job installs pnpm, |
61 | 54 | # installs all dependencies, |
62 | | - # caches the Cypress binary cache, |
63 | 55 | # then runs Cypress tests in each of the workspaces. |
64 | 56 | runs-on: ubuntu-24.04 |
65 | 57 | strategy: |
|
77 | 69 | run: npm install -g pnpm@10 |
78 | 70 |
|
79 | 71 | - name: Install dependencies |
80 | | - uses: ./ |
81 | | - with: |
82 | | - working-directory: examples/start-and-pnpm-workspaces |
83 | | - runTests: false |
| 72 | + run: pnpm install --frozen-lockfile |
| 73 | + working-directory: examples/start-and-pnpm-workspaces |
84 | 74 |
|
85 | 75 | - name: Cypress test Multiple |
86 | 76 | # Run Cypress in |
|
0 commit comments