-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.14 KB
/
Copy pathrecipe-api-ci.yml
File metadata and controls
45 lines (36 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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