add cache

This commit is contained in:
Nick Seguin 2023-12-10 01:39:57 -06:00
parent db64497a3b
commit 2ac7c3d18f

View file

@ -14,6 +14,18 @@ jobs:
- uses: actions/checkout@v4
- name: install pnpm
run: npm install -g pnpm
- name: Restore pnpm cache
uses: actions/cache/restore@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: pnpm install
run: pnpm install
- name: Restore pnpm cache
uses: actions/cache/save@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: dotnet restore
run: dotnet restore
- name: dotnet build