|
12 | 12 | env:
|
13 | 13 | HEAD_COMMIT: ${{ github.event.inputs.commit || github.sha }}
|
14 | 14 |
|
| 15 | + CACHED_BUILD_PATHS: | |
| 16 | + ${{ github.workspace }}/packages/*/*.tgz |
| 17 | + ${{ github.workspace }}/dev-packages/event-proxy-server/build |
| 18 | + ${{ github.workspace }}/node_modules |
| 19 | + ${{ github.workspace }}/packages/*/node_modules |
| 20 | + ${{ github.workspace }}/dev-packages/*/node_modules |
| 21 | +
|
15 | 22 | permissions:
|
16 | 23 | contents: read
|
17 | 24 | issues: write
|
|
33 | 40 | - name: Check canary cache
|
34 | 41 | uses: actions/cache@v4
|
35 | 42 | with:
|
36 |
| - path: | |
37 |
| - ${{ github.workspace }}/packages/*/*.tgz |
38 |
| - ${{ github.workspace }}/node_modules |
39 |
| - ${{ github.workspace }}/packages/*/node_modules |
| 43 | + path: ${{ env.CACHED_BUILD_PATHS }} |
40 | 44 | key: canary-${{ env.HEAD_COMMIT }}
|
41 | 45 | - name: Install dependencies
|
42 | 46 | run: yarn install
|
@@ -94,24 +98,22 @@ jobs:
|
94 | 98 | - uses: pnpm/action-setup@v2
|
95 | 99 | with:
|
96 | 100 | version: 8.3.1
|
| 101 | + |
97 | 102 | - name: Set up Node
|
98 | 103 | uses: actions/setup-node@v4
|
99 | 104 | with:
|
100 |
| - node-version-file: 'package.json' |
| 105 | + node-version-file: 'dev-packages/e2e-tests/package.json' |
101 | 106 |
|
102 | 107 | - name: Restore canary cache
|
103 | 108 | uses: actions/cache/restore@v4
|
104 | 109 | with:
|
105 |
| - path: | |
106 |
| - ${{ github.workspace }}/packages/*/*.tgz |
107 |
| - ${{ github.workspace }}/node_modules |
108 |
| - ${{ github.workspace }}/packages/*/node_modules |
| 110 | + path: ${{ env.CACHED_BUILD_PATHS }} |
109 | 111 | key: canary-${{ env.HEAD_COMMIT }}
|
110 | 112 |
|
111 | 113 | - name: Get node version
|
112 | 114 | id: versions
|
113 | 115 | run: |
|
114 |
| - echo "echo node=$(jq -r '.volta.node' package.json)" >> $GITHUB_OUTPUT |
| 116 | + echo "echo node=$(jq -r '.volta.node' dev-packages/e2e-tests/package.json)" >> $GITHUB_OUTPUT |
115 | 117 |
|
116 | 118 | - name: Validate Verdaccio
|
117 | 119 | run: yarn test:validate
|
|
0 commit comments