Skip to content

Commit

Permalink
setup turbo cache in GH static-analysis workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed May 30, 2023
1 parent d2275ec commit 590acd5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,21 @@ jobs:
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache
id: pnpm-cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-

- name: Setup turbo cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: turbo-${{ github.job }}-${{ github.ref_name }}-

- name: Install
run: pnpm i --ignore-scripts

Expand All @@ -47,4 +56,3 @@ jobs:
GRAPH_API_KEY: ${{ secrets.GRAPH_API_KEY }}
NEXT_PUBLIC_NODE_ENV: test
run: pnpm validate
# build:

0 comments on commit 590acd5

Please sign in to comment.