1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-28 04:04:58 +03:00

ci: set npm and pipenv caching

This commit is contained in:
louistiti 2021-05-22 09:37:13 +08:00
parent 1ce04224b2
commit 1775b07bf6
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6
3 changed files with 18 additions and 24 deletions

View File

@ -18,17 +18,15 @@ jobs:
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Cache Pipenv
uses: actions/cache@v2
with:
path: bridges/python/.venv
key: ${{ runner.os }}-pipenv-${{ env.cache-name }}-${{ hashFiles('bridges/python/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
path: ./bridges/python/.venv
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install
run: npm ci

View File

@ -18,17 +18,15 @@ jobs:
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Cache Pipenv
uses: actions/cache@v2
with:
path: bridges/python/.venv
key: ${{ runner.os }}-pipenv-${{ env.cache-name }}-${{ hashFiles('bridges/python/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
path: ./bridges/python/.venv
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install
run: npm ci

View File

@ -18,17 +18,15 @@ jobs:
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Cache Pipenv
uses: actions/cache@v2
with:
path: bridges/python/.venv
key: ${{ runner.os }}-pipenv-${{ env.cache-name }}-${{ hashFiles('bridges/python/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
path: ./bridges/python/.venv
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install npm dependencies
run: npm ci