mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Merge branch 'AAE-12190-cache-strategy-fix-1' into AAE-12190-cache-strategy-fix
This commit is contained in:
@@ -19,6 +19,8 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
|
- run: echo "::notice starting setup :: start setup"
|
||||||
|
shell: bash
|
||||||
- name: install NPM
|
- name: install NPM
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@@ -37,11 +39,11 @@ runs:
|
|||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
nxcache
|
nxcache
|
||||||
key: nxcache-${GITHUB_REF_NAME}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-${{ steps.tag-sha.outputs.tag_sha }}
|
key: nxcache-${{ github.ref_name }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-${{ steps.tag-sha.outputs.tag_sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
nxcache-${GITHUB_REF_NAME}-build-${{ env.cache-name }}-
|
nxcache-${{ github.ref_name }}-build-${{ env.cache-name }}-
|
||||||
nxcache-${GITHUB_REF_NAME}-build-
|
nxcache-${{ github.ref_name }}-build-
|
||||||
nxcache-${GITHUB_REF_NAME}-
|
nxcache-${{ github.ref_name }}-
|
||||||
- name: Node Modules cache
|
- name: Node Modules cache
|
||||||
id: node-modules-cache
|
id: node-modules-cache
|
||||||
if: ${{ inputs.enable-node-modules-cache == 'true' }}
|
if: ${{ inputs.enable-node-modules-cache == 'true' }}
|
||||||
@@ -51,19 +53,19 @@ runs:
|
|||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
node_modules
|
node_modules
|
||||||
key: .npm-${GITHUB_REF_NAME}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-${{ steps.tag-sha.outputs.tag_sha }}
|
key: .npm-${{ github.ref_name }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-${{ steps.tag-sha.outputs.tag_sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
node_modules-${GITHUB_REF_NAME}-build-${{ env.cache-name }}-
|
node_modules-${{ github.ref_name }}-build-${{ env.cache-name }}-
|
||||||
node_modules-${GITHUB_REF_NAME}-build-
|
node_modules-${{ github.ref_name }}-build-
|
||||||
node_modules-${GITHUB_REF_NAME}-
|
node_modules-${{ github.ref_name }}-
|
||||||
- name: pip cache
|
- name: pip cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
if: ${{ inputs.enable-cache == 'true' }}
|
if: ${{ inputs.enable-cache == 'true' }}
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${GITHUB_REF_NAME}-pip-
|
key: ${{ github.ref_name }}-pip-
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${GITHUB_REF_NAME}
|
${{ github.ref_name }}
|
||||||
# ENV LOAD
|
# ENV LOAD
|
||||||
- name: load .travis.yml env.global variables
|
- name: load .travis.yml env.global variables
|
||||||
uses: Alfresco/alfresco-build-tools/.github/actions/travis-env-load@v1.17.0
|
uses: Alfresco/alfresco-build-tools/.github/actions/travis-env-load@v1.17.0
|
||||||
|
|||||||
Reference in New Issue
Block a user