mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-27 05:37:15 -05:00
Fix: Split CI cache for platform builds to use source-based key (#34713)
This commit is contained in:
@@ -15,13 +15,25 @@ runs:
|
||||
path: |
|
||||
webapp/node_modules
|
||||
webapp/channels/node_modules
|
||||
key: node-modules-${{ runner.os }}-${{ hashFiles('webapp/package-lock.json') }}
|
||||
- name: ci/cache-platform-builds
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
id: cache-platform-builds
|
||||
with:
|
||||
path: |
|
||||
webapp/platform/types/lib
|
||||
webapp/platform/client/lib
|
||||
webapp/platform/components/dist
|
||||
key: node-modules-${{ runner.os }}-${{ hashFiles('webapp/package-lock.json') }}
|
||||
key: platform-builds-${{ runner.os }}-${{ hashFiles('webapp/platform/types/src/**', 'webapp/platform/client/src/**', 'webapp/platform/components/src/**') }}
|
||||
- name: ci/get-node-modules
|
||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||
shell: bash
|
||||
working-directory: webapp
|
||||
run: |
|
||||
make node_modules
|
||||
- name: ci/build-platform-packages
|
||||
if: steps.cache-platform-builds.outputs.cache-hit != 'true'
|
||||
shell: bash
|
||||
working-directory: webapp
|
||||
run: |
|
||||
npm run build --workspace=platform/types --workspace=platform/client --workspace=platform/components
|
||||
|
||||
Reference in New Issue
Block a user