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:
parent
1ce04224b2
commit
1775b07bf6
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -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
|
||||
|
||||
|
14
.github/workflows/lint.yml
vendored
14
.github/workflows/lint.yml
vendored
@ -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
|
||||
|
||||
|
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user