perf(backend): cache .venv path correctly (#10)
* perf(backend): cache .venv path correctly * perf(frontend): cache .yarn and .parcel-cache path correctly
This commit is contained in:
parent
a341b462c7
commit
5b600f0cb7
2 changed files with 11 additions and 12 deletions
6
.github/workflows/backend-pipeline.yml
vendored
6
.github/workflows/backend-pipeline.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
||||||
id: cache-restore
|
id: cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.venv
|
backend/.venv
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}-${{ steps.get-python-version.outputs.python_version }}
|
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}-${{ steps.get-python-version.outputs.python_version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache-restore.outputs.cache-hit != 'true'
|
if: steps.cache-restore.outputs.cache-hit != 'true'
|
||||||
|
@ -54,7 +54,7 @@ jobs:
|
||||||
id: cache-restore
|
id: cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.venv
|
backend/.venv
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}-${{ steps.get-python-version.outputs.python_version }}
|
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}-${{ steps.get-python-version.outputs.python_version }}
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
|
@ -82,7 +82,7 @@ jobs:
|
||||||
id: cache-restore
|
id: cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.venv
|
backend/.venv
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}-${{ steps.get-python-version.outputs.python_version }}
|
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}-${{ steps.get-python-version.outputs.python_version }}
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
|
|
17
.github/workflows/frontend-pipeline.yml
vendored
17
.github/workflows/frontend-pipeline.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
||||||
id: cache-restore
|
id: cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.yarn
|
frontend/.yarn
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache-restore.outputs.cache-hit != 'true'
|
if: steps.cache-restore.outputs.cache-hit != 'true'
|
||||||
|
@ -45,7 +45,7 @@ jobs:
|
||||||
id: yarn-cache-restore
|
id: yarn-cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.yarn
|
frontend/.yarn
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
|
@ -68,7 +68,7 @@ jobs:
|
||||||
id: yarn-cache-restore
|
id: yarn-cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.yarn
|
frontend/.yarn
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
|
@ -91,13 +91,12 @@ jobs:
|
||||||
id: yarn-cache-restore
|
id: yarn-cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.yarn
|
frontend/.yarn
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
run: |
|
run: |
|
||||||
. script/bootstrap
|
. script/bootstrap
|
||||||
yarn typecheck
|
yarn typecheck
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build App
|
name: Build App
|
||||||
|
@ -115,14 +114,14 @@ jobs:
|
||||||
id: yarn-cache-restore
|
id: yarn-cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.yarn
|
frontend/.yarn
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
||||||
- name: Parcel cache
|
- name: Parcel cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
id: parcel-cache-restore
|
id: parcel-cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.parcel-cache
|
frontend/.parcel-cache
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}-parcel
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}-parcel
|
||||||
- run: |
|
- run: |
|
||||||
. script/bootstrap
|
. script/bootstrap
|
||||||
|
@ -148,7 +147,7 @@ jobs:
|
||||||
id: yarn-cache-restore
|
id: yarn-cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.yarn
|
frontend/.yarn
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
||||||
- run: . script/bootstrap
|
- run: . script/bootstrap
|
||||||
- name: Build Artifacts
|
- name: Build Artifacts
|
||||||
|
@ -193,7 +192,7 @@ jobs:
|
||||||
id: yarn-cache-restore
|
id: yarn-cache-restore
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.yarn
|
frontend/.yarn
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
|
||||||
- run: . script/bootstrap
|
- run: . script/bootstrap
|
||||||
- name: Build Artifacts
|
- name: Build Artifacts
|
||||||
|
|
Reference in a new issue