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:
Marc 2023-08-12 11:59:03 -04:00 committed by GitHub
parent a341b462c7
commit 5b600f0cb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 12 deletions

View file

@ -26,7 +26,7 @@ jobs:
id: cache-restore
with:
path: |
.venv
backend/.venv
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}-${{ steps.get-python-version.outputs.python_version }}
- name: Install dependencies
if: steps.cache-restore.outputs.cache-hit != 'true'
@ -54,7 +54,7 @@ jobs:
id: cache-restore
with:
path: |
.venv
backend/.venv
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}-${{ steps.get-python-version.outputs.python_version }}
- name: Lint
run: |
@ -82,7 +82,7 @@ jobs:
id: cache-restore
with:
path: |
.venv
backend/.venv
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}-${{ steps.get-python-version.outputs.python_version }}
- name: Test
run: |

View file

@ -23,7 +23,7 @@ jobs:
id: cache-restore
with:
path: |
.yarn
frontend/.yarn
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- name: Install dependencies
if: steps.cache-restore.outputs.cache-hit != 'true'
@ -45,7 +45,7 @@ jobs:
id: yarn-cache-restore
with:
path: |
.yarn
frontend/.yarn
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- name: Lint
run: |
@ -68,7 +68,7 @@ jobs:
id: yarn-cache-restore
with:
path: |
.yarn
frontend/.yarn
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- name: Test
run: |
@ -91,13 +91,12 @@ jobs:
id: yarn-cache-restore
with:
path: |
.yarn
frontend/.yarn
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- name: Typecheck
run: |
. script/bootstrap
yarn typecheck
build:
runs-on: ubuntu-latest
name: Build App
@ -115,14 +114,14 @@ jobs:
id: yarn-cache-restore
with:
path: |
.yarn
frontend/.yarn
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- name: Parcel cache
uses: actions/cache@v3
id: parcel-cache-restore
with:
path: |
.parcel-cache
frontend/.parcel-cache
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}-parcel
- run: |
. script/bootstrap
@ -148,7 +147,7 @@ jobs:
id: yarn-cache-restore
with:
path: |
.yarn
frontend/.yarn
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- run: . script/bootstrap
- name: Build Artifacts
@ -193,7 +192,7 @@ jobs:
id: yarn-cache-restore
with:
path: |
.yarn
frontend/.yarn
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- run: . script/bootstrap
- name: Build Artifacts