Skip to content

Update actions/cache action to v5.1.0 - autoclosed #96

Update actions/cache action to v5.1.0 - autoclosed

Update actions/cache action to v5.1.0 - autoclosed #96

Workflow file for this run

name: Recipe API CI
on:
pull_request:
paths:
- "workers/recipe-api/**"
- ".github/workflows/recipe-api-ci.yml"
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: workers/recipe-api
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
with:
experimental: true
- name: Get pnpm store directory
id: pnpm-store
shell: bash
run: echo "dir=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: ${{ steps.pnpm-store.outputs.dir }}
key: pnpm-store-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: pnpm-store-${{ runner.os }}-
- name: Install dependencies
run: pnpm install --frozen-lockfile --filter recipe-api...
- name: Typecheck
run: pnpm typecheck
- name: Test
run: pnpm test